Alternatives to handle customizer settings

I wonder if you could add your own jbst_default_color filter to the default color value: $wp_customize->add_setting( ‘color’, array( ‘default’ => apply_filters( ‘jbst_default_color’, $color=”#ED9C28″ ) ) ); where you would add this to the child theme: /** * Change the default color */ function childtheme_jbst_default_color( $color ) { $color=”red”; return $color; } add_filter( ‘jbst_default_color’, ‘childtheme_jbst_default_color’, 99, … Read more

Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]

As @Milo said , WP loads jQuery in no conflict mode so shortcut $ is not available for jQuery to use .You should not use the $ variable for jQuery within WordPress.As you said you are not into jQuery i’m just giving the code below..Try it. jQuery(function ($) { $(window).load(function() { $(‘#main-slider’).flexslider({ animation: “slide”, useCSS: … Read more

How to include posts with a theme

Export the posts via the exporter at wp_admin->Tools->Export and bundle the resulting file. Provide the end user with instructions for importing them– basically, install the WordPress importer and then visit wp_admin->Tools->Import. Please do not try to force installation of your posts automatically as it will insert data into the user’s database. That just isn’t friendly.