13
Nazmul Hasan Rupok Web & Mobile Application Developer WordPress Theme Development Best Practices www.rupok.me

WordPress Theme Development : Best Practices

Embed Size (px)

DESCRIPTION

WordPress Theme Development : Best Practices presented on "WordPressians 7th Meetup, Dhaka, Bangladesh" http://wpressians.net/meetup/7th-meetup/

Citation preview

Page 1: WordPress Theme Development : Best Practices

Nazmul Hasan Rupok Web & Mobile Application Developer

WordPress Theme Development Best Practices

www.rupok.me

Page 2: WordPress Theme Development : Best Practices

• Start with WordPress Codexhttp://codex.wordpress.org/Theme_Development

• Follow WordPress Coding Standardshttp://codex.wordpress.org/WordPress_Coding_Standards

Getting Started

Page 3: WordPress Theme Development : Best Practices

Why you should use a WordPress starter theme?https://thethemefoundry.com/blog/wordpress-starter-theme/

Use a WordPress starter theme

SAVE YOUR ASS!

Page 4: WordPress Theme Development : Best Practices

Underscores

http://underscores.me/

Use a WordPress starter theme (cont.)

Page 5: WordPress Theme Development : Best Practices

http://roots.io/starter-theme/

Use a WordPress starter theme (cont.)

Page 6: WordPress Theme Development : Best Practices

http://codex.wordpress.org/I18n_for_WordPress_Developers

Localization and Internationalization

It’s !important

Page 7: WordPress Theme Development : Best Practices

Organizing Theme Files

!• Template File Checklist http://codex.wordpress.org/Theme_Development#Template_File_Checklist !• Template Hierarchy http://codex.wordpress.org/Template_Hierarchy !• Stepping Into Templates http://codex.wordpress.org/Stepping_Into_Templates !• Theme Development http://codex.wordpress.org/Theme_Development

Page 8: WordPress Theme Development : Best Practices

Theme Options and the Customizer

Say Thanks to the Settings API

http://codex.wordpress.org/Settings_API

Theme Customizer!Since WordPress 3.4

https://codex.wordpress.org/Theme_Customization_API

Page 9: WordPress Theme Development : Best Practices

Using Options Frameworks

Options Framework Pluginhttp://wordpress.org/plugins/options-framework/

Redux Frameworkhttp://reduxframework.com/

http://hasin.me/2014/07/16/adding-redux-framework-in-your-wordpress-theme/

Tut

Page 10: WordPress Theme Development : Best Practices

Testing your Theme

Always have wp_debug on

Theme Unit Test

http://codex.wordpress.org/Theme_Unit_Test

Page 11: WordPress Theme Development : Best Practices

Testing your Theme(cont.)

Helpful Plugins

• Log Deprecated Notices

http://wordpress.org/plugins/log-deprecated-notices/

• Theme Check

http://wordpress.org/plugins/theme-check/

• Theme Mentorhttp://wordpress.org/plugins/theme-mentor/

• Monster Widgethttp://wordpress.org/plugins/monster-widget/

Page 12: WordPress Theme Development : Best Practices

Questions?

Page 13: WordPress Theme Development : Best Practices

Thanks! :)