Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1582148
disable menus
Closed

Comments

  • Catutzi started the conversation

    Hi,

    How can i disable Quickfinders, Teams, Testimonials, News, NivoSlider from the wordpress admin page?

    I don't need them and it take a lot of space on the admin page.

    Thank you.

  •  7,092
    Oliver replied

    Hi,

    Add this code to the functions.php of the child theme:

    function thegem_remove_post_type() {
        remove_menu_page( 'edit.php?post_type=thegem_client' );
        remove_menu_page( 'edit.php?post_type=thegem_gallery' );
        remove_menu_page( 'edit.php?post_type=thegem_news' );
        remove_menu_page( 'edit.php?post_type=thegem_portfolios' );
        remove_menu_page( 'edit.php?post_type=thegem_qf_item' );
        remove_menu_page( 'edit.php?post_type=thegem_slide' );
        remove_menu_page( 'edit.php?post_type=thegem_team_person' );
        remove_menu_page( 'edit.php?post_type=thegem_testimonial' );
        remove_menu_page( 'edit.php?post_type=thegem_footer' );
    }
    add_action( 'admin_menu', 'thegem_remove_post_type' );
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Catutzi replied

    Thank you  so much!

    It worked.

  •  7,092
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver