carasmo
2/10/2017 - 7:41 PM

Genesis Child theme remove the Colors Customizer section but not the functionality

Genesis Child theme remove the Colors Customizer section but not the functionality

<?php
// DO NOT ADD ABOVE

/* Instructions only: put this at the very bottom of your functions.php file.
 * outside of all other functions, registrations, etc.
 * so go to the very very bottom with your code editor and hit return a couple times to get some white space and then
 * paste code below in and change the two instances of yourprefix_ (that's an underscore) to yourname or initials
*/


// Remove Customizer Colors Section but not functions // tested with Executive Pro
function yourprefix_remove_colors_customizer_section_registration() {     
	global $wp_customize;
	$wp_customize->remove_section( 'colors' );
} 
add_action( 'customize_register', 'yourprefix_remove_colors_customizer_section_registration', 11 );