Color Options from Theme Customizer API not returning via get_theme_mod()

If your settings are stored as Theme Mods, rather than as a Settings API option, then you need to pass the appropriate value to the type parameter to $wp_customize->add_setting(): ‘option’: Settings API option (get_option()) ‘theme_mod’: Theme Mods API option (get_theme_mod()) Try changing this: $wp_customize->add_setting( $this_theme . ‘_theme_options[‘. $setting .’]’, array( ‘default’ => $param[‘default’], ‘sanitize_callback’ => … Read more

What are the best practices for maintaining and deploying several parent themes?

While I agree with Justin Tadlock on a lot of things, I strongly disagree with him on this. The reason parent/child themes exist is that there’s a lot of common functionality used across websites. Instead of re-inventing the wheel every time, it’s better to build from a solid base that has been tested by hundreds … Read more

How to edit classes in body tag?

try this //*** make Services full col ***/ add_filter( ‘body_class’, ‘custom_post_full_width’, 999, 2 ); function custom_post_full_width( $wp_classes, $class ) { if ( is_post_type_archive(‘services’) OR is_singular(‘services’) ) { // List of the only WP generated classes that are not allowed $blacklist = array(‘two-col-right’, ‘two-col-right-1080’); // Blacklist result $wp_classes = array_diff( $wp_classes, $blacklist ); // Extra classes … Read more