Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/functions.php Secret
Created Apr 29, 2019

Embed
What would you like to do?
<?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
You can’t perform that action at this time.