thank you Konstantin for this great theme, actually the cleanest one based on bootstrap i found around.
I’m working on a child-theme based on your theme, for the first time using the Theme Customization API and I can’t achieve what i entend to.
Is there anyway to hook and replace some controls and settings set in theme-customizer.php from a child-theme?
I didn’t want to copy this file from parent to child theme and directly modify it, tried to $wp_customize->remove_control from functions.php located in child-theme but it fails.
To be more precise, if I want to keep the ‘Layout’ section set in my the-bootstrap parent theme but remove the setting and control of the ‘Default Layout’ option and replace it by another radio option set, all this from a child theme, is the only solution copying and customizing theme-customizer.php or can it be done by hooking in any way maybe $wp_customize?
Copying and customizing theme-customizer.php wouldn’t be a problem but I thought that trying to interact this way would be the occasion to learn a bit more about oophp in wordpress.
EDIT: actually i tried to customize a child-theme copy of theme-customizer.php but failed and the reason is obvious:
as theme-customizer.php is included in functions.php, the only file not overridden by its child version, i saw a nice php fatal error due to the redeclaration of the_bootstrap_customize_register().
So i fall back to previous question: how to hook dat?
- The topic ‘removing controls and settings set in parent from child theme’ is closed to new replies.