Last active
October 6, 2016 02:25
-
-
Save BeardedGinger/970cacc3bd1c50bb695b881043b84c3f to your computer and use it in GitHub Desktop.
Remove the Genesis Blog Page settings from the Genesis Theme Settings page
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 | |
add_action( 'toplevel_page_genesis_settings_page_boxes', 'lc_remove_unwanted_genesis_metaboxes' ); | |
/** | |
* Remove the blog page settings metabox from the Genesis Theme Settings | |
* Desired if following the suggestion by Bill Erickson to not use the Blog page template | |
* that comes standard in the Genesis Theme | |
* | |
* @link http://www.billerickson.net/dont-use-genesis-blog-template/ | |
*/ | |
function lc_remove_unwanted_genesis_metaboxes() { | |
remove_meta_box( 'genesis-theme-settings-blogpage', 'toplevel_page_genesis', 'main' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment