tomjn / WordPress-The-Right-Way

WordPress The Right Way

Home Page:https://www.wptherightway.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theme Resources

psahalot opened this issue · comments

Hi @tarendai
I don't see any section for Themes. I will be happy to build one.
There could be various chapters under themes:

  1. Template Hierarchy
  2. Code Standards
  3. Functions, Hooks, Filters (Themes specific)
  4. Theme Customizer
  5. Data validation and sanitization
  6. Theme Translation / Internalization
  7. Copyright / License Attribution

This is all I could think as of now. But, I am sure there's lot more.
I will be happy to start the section and contribute on various topics.
Looking forward to your reply and confirmation.

Thanks!

Perhaps but most of those already have sections

  • Template Hierarchy is covered under templates
  • Code standards have their own chapter ( 2 )
  • Data validation and sanitization should go under security
  • Translation and internationalisation is chapter 11 ( I18n )

I think a chapter about Themes is not bad, but like @tarendai mentioned there are already chapter for different topics. If we add a Theme chapter it should only contain information which are only valid for Themes. For example Copyright / License Attribution is not only a topic for themes but for plugins, too. However, Theme Customizer is a typical theme topic :)

A Themes chapter could have information about displaying images and strategies for that. It could also show how to register image sizes, change how to display images or alter their output in themes, etc. Another interesting topic would be menus and walkers. Those alone could fill a whole book.

My thinking is that we already have a templates chapter, perhaps it can be broken up to include the relevant parts and renamed to Themes & Templates?

Yes, I'd rename that. And make Templates a sub chapter of Themes. There's much more to themes that needs covering than just templates.