-
-
Save billerickson/e7434b8ae761f452831ecd7eeb79c963 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Save some Genesis schema | |
* @see https://billerickson.net | |
* | |
*/ | |
function be_save_some_genesis_schema( $elements ) { | |
$save = array( | |
'site-header', | |
'site-title', | |
'site-description', | |
'nav-primary', | |
'nav-secondary', | |
'nav-header', | |
'nav-link-wrap', | |
'nav-link', | |
'sidebar-primary', | |
'sidebar-secondary', | |
'site-footer', | |
); | |
return array_diff( $elements, $save ); | |
} | |
add_filter( 'be_remove_schema_elements', 'be_save_some_genesis_schema' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment