0

I installed the flatsome theme and it created a menu in the admin panel. I wanted to hide it because it is redundant to Appearance menu that is already in the dashboard. How will I possibly hide the menu item on the sidebar and on the top bar?

Here is an screenshot.

  • Hi, welcome to WPSE. Can you please specify it's slug, css classes, etc? We don't even know what we're dealing with if you don't provide more information. – Jack Johansson May 26 '17 at 23:48
0

You should ask support from flatsome .They have a active facebook group https://www.facebook.com/groups/flatsome/ . You should ask your question there.

0
  1. As a temporary solution, add below script to the function.php file
wp_enqueue_style( 'flatsome-hide', get_stylesheet_directory_uri() . '/css/flatsome.css', array('flatsome'), '1.0' );

Crete a CSS file called "flatsome" inside your CSS directory, or whatever you prefer, make sure you update the name and the path on function.php. Then inspect the menu class and hide it using display: none

  1. The second method, use a filter in fuction.php

function custom_menu_page_removing() {
    remove_menu_page( $menu_slug );
}
add_action( 'admin_menu', 'your-MENU' );

https://codex.wordpress.org/Function_Reference/remove_menu_page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.