I’m using the following code to allow a user to upload a custom image (in addition to header image) through the customizer. Is there a way to crop the...
Why does get_theme_mod return blank (or the default value if specified) but get_option returns the correct (saved) value? I have a colour picker in the customizer color-primary which functions...
For some reason I cannot output the color. Everything works, but text_color just doesn’t want to output its value. What is going wrong? Back end code (functions.php): $wp_customize->add_setting('text_color', array(...
I’m working on a website of a client and I’m trying to add social media links to the customizer, which then can be called through get_theme_mod, via a shortcode....
Does someone know how to write the next line in wordpress PHP, because i’m not that great with PHP. If_theme_mode has content echo { my content } else {...
I’m using the WordPress customizer feature to configure my theme and I constantly bumping into the same annoying issue, sometimes I don’t get any value from get_theme_mod while I...
I’m working on a custom site, doing all my work in a child theme. I need to add one variable, slider speed, to the customize control system. I’ve been...
PHP newbie here, and I have this on my functions.php function mcs_social($wp_customize){ $wp_customize->add_section('mcs_social_handle', array( 'title' => __('Social Network Handles', 'mcs'), 'description' => 'i.e., Acme Company\'s Facebook is https://facebook.com/acmecompany then...
If I print the value of get_theme_mod( 'enable_sleek_header', false ) it is always the previously saved value. If I print the same thing in the header of the theme,...
Can I create a customizer setting which will handle a shortcode from a plugin? Do I violate and rules or guidelines in WordPress theme development? If it’s possible what...