BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Removing Customizer
Tagged: Boss Theme Customizer
- This topic has 11 replies, 3 contibutors, and was last updated 9 years, 1 months ago by Anonymous.
Question
August 14, 2015 at 6:18 am #44444@devcomHello, I’ve used your code snippet (https://www.buddyboss.com/tutorials/customize/) to remove the customizer in a child theme and it’s not working. Is this an outdated article?
Answers
August 15, 2015 at 9:15 am #44514@alyssa-buddyboss
AlyssaParticipant@devcom I added this to code my child theme functions.php file and verified it still works. This only disables the customizer theme options, the default themeing will still be in place.
August 15, 2015 at 9:19 am #44515@devcomWhen using a child theme, I don’t want the administrator to be able to use the Theme Customizer – which i why I want to get rid of it. Plus I wrote all my styles in the child theme custom.css sheet as directed.
I can remove the customizer correct? By stating “the default theming will still be in place”, you mean the styles of theme will remain regardless if the customizer is present – which is the impression I’m already under.
Can you verify this what you mean?
August 15, 2015 at 9:25 am #44516@devcom@tjchester
August 15, 2015 at 10:42 am #44526@
AnonymousHi @devcom, if you need to remove the customize menu for everyone, you will need to add
function remove_customize_page(){ global $submenu; unset($submenu['themes.php'][6]); // remove customize link } add_action( 'admin_menu', 'remove_customize_page');
We have also added customize.php link inside the header.php , you will also have to override header.php in child theme and remove following codes from it.
<a href="<?php echo admin_url('customize.php'); ?>"><?php _e( 'Customize', 'boss' );?></a>
Regards
August 15, 2015 at 10:48 am #44527@devcom@vapvarun Thanks for that. It removes it from the dashboard submenu but still exists on the child theme in Appearance -> Themes. Is there not a way to fully drop support for it?
August 15, 2015 at 10:51 am #44528@devcom@vapvarun
August 15, 2015 at 11:01 am #44530@
Anonymoushi @devcom, You can try this one also, i have tested it , it works with child theme as well
`
function remove_menus(){
remove_submenu_page( ‘themes.php’, ‘customize.php’ );
}
add_action( ‘admin_menu’, ‘remove_menus’ );
‘August 15, 2015 at 11:31 am #44534@devcom@vapvarun I’m running the latest version of wordpress and that code doesn’t work at all. I put it directly into my child themes function.php.
August 15, 2015 at 11:47 am #44535@
AnonymousHi @devcom, i have also tested them on latest version of the wp and theme, just for testing , try add both codes at same time inside child theme. These are general wordpress tweaks you can also try to google about them.
August 15, 2015 at 12:27 pm #44541@devcomGood Man. Thanks for your help
August 16, 2015 at 12:41 pm #44576@
AnonymousGreat, I will close this topic.
- The question ‘Removing Customizer’ is closed to new replies.