Created
January 1, 2020 20:11
-
-
Save joshuadavidnelson/57eb75c95c66d130452b7b3ad293c3c4 to your computer and use it in GitHub Desktop.
Remove the Genesis Layout settings in Customizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove layout settings from customizer | |
add_filter( 'genesis_customizer_theme_settings_config', 'jdn_filter_genesis_customizer_theme_settings' ); | |
function jdn_filter_genesis_customizer_theme_settings( $config ) { | |
if( isset( $config['genesis']['sections']['genesis_layout'] ) ) | |
unset( $config['genesis']['sections']['genesis_layout'] ); | |
return $config; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment