Hide "Feature on Homepage" for Easy Blogging

Hi,

My theme comes with a Featured on Homepage option, how can I hide this from the Easy Blogging view?

Thanks!

  • Domas

    Hey Rooster,

    Thank you for posting on the forums :slight_smile:

    I'll add my comment here too. This is a meta box, so

    1) You need to find that meta box ID.

    If you are familiar with PHP, then you should look for something like add_meta_box( 'myplugin_sectionid', __( 'Post Options' ), ... ); in your theme files. For instance, here meta box id is 'myplugin_sectionid'.

    If you are not familiar, then you should look at WP post/page edit HTML source code and find 'Post Options' meta box Div id. For instance, Categories meta box Div id is categorydiv, source: <div style="display: block;" id="categorydiv" class="postbox ">

    2) Add this code to your theme's function.php file and change 'categorydiv' to your 'Post Options' meta box id:

    /*
     * Remove meta boxes when Easy Blogging mode is activated.
     */
    function remove_meta_boxes() {
    	if ( defined('WDEB_PLUGIN_SELF_DIRNAME') && WDEB_IS_IN_EASY_MODE ) {
    		// remove from post
    		remove_meta_box( 'categorydiv', 'post', 'side' );
    		// remove from page
    		remove_meta_box( 'categorydiv', 'page', 'side' );
    	}
    }
    
    add_action( 'admin_menu', 'remove_meta_boxes' );

    This code snippet will remove that meta box from the Easy Blogging view.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.