Theme Customizer Boilerplate – Conditional Options, Child Themes and Plugins

Theme Customizer Boilerplate – Conditional Options, Child Themes and Plugins

So far we've seen how simple it is to handle theme options using Theme Customizer Boilerplate and its hooks. As you probably recall, the most important step was hooking into 'thsp_cbp_options_array' filter hook and passing it array of options you want to use in your theme. I'm sure you're already familiar with WordPress action and filter hooks -- Plugin API…

Extending The WordPress Theme Customizer Boilerplate

Extending The WordPress Theme Customizer Boilerplate

Part 3 of the Theme Customizer series introduced you to the Theme Customizer Boilerplate which allows you to simplify code that handles your theme options. All you need to do is pass an array of option fields and the boilerplate will take care of registering Theme Customizer sections, settings and controls for you behind the scenes. Until now, boilerplate allowed…

WordPress Theme Customizer Boilerplate

WordPress Theme Customizer Boilerplate

Update: This article has been edited on February 19th 2013, to reflect the changes made to Theme Customizer Boilerplate. Hopefully you read and enjoyed first two posts of Theme Customizer series -- Introduction to WordPress Theme Customizer and Interacting With Theme Customizer. Now it's time to move to main course and start assembling Theme Customizer boilerplate you'll be able to…

Interacting With WordPress Theme Customizer

Interacting With WordPress Theme Customizer

In part 1 of WordPress Theme Customizer series I mentioned that in order to interact with Theme Customizer you need to load $wp_customize object, which is an instance of WP_Customize_Manager class. To do that, you must use customize_register action hook: You can place this code in your theme's functions.php or a file that's included from it. Adding or removing Theme…

Introduction To The WordPress Theme Customizer

Introduction To The WordPress Theme Customizer

One thing I always disliked about theme settings pages was how vastly different they would get. Imagine every car manufacturer trying to add their own touch by having unique wheel placement and you'll see why that's a bad thing for WordPress publishers. Luckily, since 3.4 and thanks to Theme Customizer API we don't need settings pages at all. https://twitter.com/kovshenin/status/281401416550080512 The…