WordPress themes are files that work together to create the design and functionality of a WordPress site. An efficient theme structure includes separate files for assets, functions, templates and parts to keep the code modular and reusable. Key aspects of the structure include folders for CSS, JS and images; functions split across multiple files; main templates in the root directory with custom templates in a sub-folder; and reusable parts included using get_template_part(). This summary outlines best practices for organizing WordPress theme code and structure.
2. What is a WordPress theme?
WordPress Themes are files that work together to
create the design and functionality of a WordPress
site. Each Theme may be different, offering many
choices for site owners to instantly change their
website look.
- https://codex.wordpress.org/Theme_Development
3. What is a WordPress theme?
WordPress Themes are files that work together to
create the design and functionality of a WordPress
site. Each Theme may be different, offering many
choices for site owners to instantly change their
website look.
- https://codex.wordpress.org/Theme_Development
4. What is a WordPress theme?
WordPress Themes are files that work together to
create the design and functionality of a WordPress
site. Each Theme may be different, offering many
choices for site owners to instantly change their
website look.
- https://codex.wordpress.org/Theme_Development
5. What we’ll cover
• Theme considerations
• What should go into a theme
• File and folder structure
• Assets
• Functions
• Page templates
• Template parts
• Theme wrappers
6. About me
• Keith Devon
• Freelance WordPress developer for 5 years
• Starting an agency
• Primarily build custom themes
• Focus on performance, SEO, business goals
keith@keithdevon.com | @keithdevon
7. Theme considerations
• development speed
• modular
• reusable
• DRY
• lightweight
• collaboration
• WP coding standards
• intuitively named
• high performance
• site speed
• SEO
• a11y
• growth/evolution
8. What to include
(and what to leave out)
Themes
• Front-end display
• Visual enhancements
• Navigation
Plugins
• Content structure
• Custom post types
• Custom taxonomies
• Custom fields
• Other functionality and logic
• API integrations