Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created April 29, 2019 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/e7434b8ae761f452831ecd7eeb79c963 to your computer and use it in GitHub Desktop.
Save billerickson/e7434b8ae761f452831ecd7eeb79c963 to your computer and use it in GitHub Desktop.
<?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