This topic has 7 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #48884
     John
    Participant

    I am wanting to disable “Clients, Portfolio and Testimonials” post types. Don’t need them for a project I am working on and I don’t want them in the admin.

    I am using a child theme but I am not sure how to accomplish this without editing the main theme-functions file.

    Any help would be greatly appreciated.

    Thanks,

    John

    Attachments:
    You must be logged in to view attached files.
    #48980
     Radu
    Moderator

    Hello JohnMcLearran,

    Here is your solution

    Add this snippet to your kleo-child/functions.php

    COPY CODE
    
    function hide_menu_items() {
        remove_menu_page( 'edit.php?post_type=kleo_clients' );
        remove_menu_page( 'edit.php?post_type=kleo-testimonials' );
        remove_menu_page( 'edit.php?post_type=portfolio' );
    }
    add_action( 'admin_menu', 'hide_menu_items' );
    

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #48985
     John
    Participant

    That is awesome!

    I had tried going through the WordPress Codex(as well as many other options) to remove parent theme options thru child theme and had no luck…

    Thanks!

    #48997
     Radu
    Moderator

    You are welcome!

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #68090
     pandreas82
    Participant

    And what about if we would like to remove these selections from wordpress ‘+New’ horizontal menu?

    Is there any custom code for this?

    Thank you in advance!

    Regards,

    Andreas

    #68262
     Radu
    Moderator

    You refer about the top black admin bar ?

    Regards

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #68296
     pandreas82
    Participant

    Yes, I mean this admin bar at the top.

    #68596
     Radu
    Moderator

    Go to Wp-ADmin -> Theme Options -> Miscellaneous -> Admin Toolbar -> set OFF

    Regards

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?