If you don’t have any blog articles or news on your website, you can remove the “Posts” tab from your WordPress menu. To do so, you just add the following code to your functions.php file in the child theme:

/* Removes the menu item "Posts" from the WordPress menu */
function post_remove ()      
add_action('admin_menu', 'post_remove');

/* Removes the menu item "Posts" from the toolbar */
function remove_wp_nodes() 
    global $wp_admin_bar;   
    $wp_admin_bar->remove_node( 'new-post' );
    $wp_admin_bar->remove_node( 'new-link' );
    $wp_admin_bar->remove_node( 'new-media' );
add_action( 'admin_bar_menu', 'remove_wp_nodes', 999 );

Note: The menu item is not permanently deleted. If you remove the code, the menu item will be back.

You are not using a Divi Child Theme yet?

If you are not using a child theme yet, you can get my pre-built child theme here. Then, you can upload the theme under Appearance > Themes and activate it.

After that you need to open the functions.php file via FTP and insert the code there. Then, the menu item “Posts ” should disappear from the menu.

Dir hat der Beitrag gefallen? Dann teile ihn gerne!