How do I get a parent theme modification from a child theme?

If you look at how the code works, you should notice that theme mods are saved in the *_options table under theme_mods_{theme_slug} with the theme slug being, as near as I can tell, the directory name containing the theme stylesheet, so: $ptheme = get_template_directory(); $theme_slug = basename($ptheme); $mods = get_option( “theme_mods_$theme_slug”); As a function: function … Read more

Check if Favicon is set in Customizer

WordPress saves the Favicon as site_icon in the options table holding the attachment post ID. What you could do is something like this: if( false === get_option( ‘site_icon’, false ) ) { // Show favicon } Where get_option() will hit the default ( we provide as the 2nd parameter ) false IF the site_icon does … Read more

possible to make sections in theme customizer sortable and saveable at publish button clicked?

Simple tutorial – How to sort customizer sections in the panel and add order to theme. 1. You must use prefixes to do this because customizer don’t support custom classes. ctmss_panel_ – for panels ctmss_section_ – for sections ctmss_hidden_ – for hidden sections that has a input with values 2. Add panel to the Customizer … Read more

Is it possible to display the admin bar while in the Theme Customizer?

Is this what you are looking for? add_filter(‘show_admin_bar’, ‘__return_true’); Codex Btw following code in wp-config.php could help also: define( ‘WP_DEBUG’, true ); // Or false if ( WP_DEBUG ) { define( ‘WP_DEBUG_LOG’, true ); // writes errors down in wp-content/debug.log define( ‘WP_DEBUG_DISPLAY’, true ); // shows errors on screen output, set false to on write … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)