• Kristin

    (@kristindraves)


    I have a client that will not be needing Portfolio, but it confuses them to still have it visible in their menu.

    Recommendations on smoothly and neatly hiding or deactivating that widget without making a complete mess in a child theme?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello there,

    Thank you for reaching out to us here.

    Technically speaking, you can delete any custom post types like Services, Testimonials and Projects by using the unregister_post_type() function. For Portfolio/Project, you can use the following PHP code.

    
    add_action('init','sydney_child_delete_portfolio');
    function sydney_child_delete_portfolio(){
    
        unregister_post_type( 'projects' );
    
    }
    

    To apply it on your site, add it into your child theme’s functions.php or use the My Custom Functions plugin without child theme.

    Regards,
    Kharis

    Thread Starter Kristin

    (@kristindraves)

    Gah, your awesome, that works perfectly! If I needed to, in lieu of deleting, is there a quick and easy way to rename? Say I wanted to have “Testimonials” show as “Endorsements”, for example.

    Thread Starter Kristin

    (@kristindraves)

    Sorry Kharis, just wanted to followup and see if you had a solution for renaming the admin widgets.

    Thanks!

    Hello there,

    Try to use the Loco Translate plugin.

    Regards,
    Kharis

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deactivate/Hide Sydney Admin Widgets’ is closed to new replies.