Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove Genesis Theme Settings Metaboxes
<?php
add_action( 'genesis_admin_before_metaboxes', 'wpb_remove_unwanted_genesis_metaboxes' );
/**
* Remove various metaboxes of Genesis Theme Settings
* More metaboxes appear see @filesource genesis/admin/theme-settings.php
* @param metaboxes()
* @see https://fewerthanthree.com/code-snippets/remove-blog-page-settings-genesis-theme-settings/
*
*/
function wpb_remove_unwanted_genesis_metaboxes() {
remove_meta_box( 'genesis-theme-settings-version', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-feeds', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-layout', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-nav', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-breadcrumb', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-comments', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-posts', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-blogpage', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-scripts', 'toplevel_page_genesis', 'main' );
remove_meta_box( 'genesis-theme-settings-header', 'toplevel_page_genesis', 'main' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment