Another question, perhaps you could help me with that.
With Wordpress version 4.2 the possibility to switch theme has been brought to the customizer. Since my customers only work with a bb-child-theme they don’t need to switch theme. Is there a simple way of removing that from the customizer? Some month ago Justin explained me how to remove bb-modules from the customizer:
I’m not sure if there is an official way to remove that (you may try the .org forums), but you could probably do that with some CSS. Here’s a rough example of the PHP you would need for that…
In your customizer.css file, you’ll need this CSS…
#accordion-section-themes { display: none; }
That only hides the section for the theme switcher. I believe there are other entry points for the theme switcher, so you may want to look into an official solution in the long run.
/**
* This function removes the themes section from the customizer.
*/
function custom_remove_themes_section() {
global $wp_customize;
$wp_customize->remove_section( 'themes' );
}
add_action( 'customize_register', 'custom_remove_themes_section' );