-
Author
-
April 10, 2016 at 23:30 #115545tollyitprosParticipant
Hello,
I’ve added the piece of code found here: https://archived.seventhqueen.com/kleo/article/disable-clients-testimonials-portfolio-post-types to the child theme but it still shows those in the admin panel and top bar, do I need to trigger something to enforce the changes?
Regards,
Rishi
April 11, 2016 at 18:41 #115754RaduModeratorHi,
Try this solution
Let me know
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 13, 2016 at 23:51 #116442tollyitprosParticipantThat only worked partly, I still can see the Clients, Testimonials or Portfolio from the top wp admin bar (from the “+New” menu option.
April 14, 2016 at 16:34 #116594RaduModeratorRemove that snippet and replace it with this
https://archived.seventhqueen.com/kleo/article/disable-clients-testimonials-portfolio-post-types
Let me know
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 14, 2016 at 22:34 #116721tollyitprosParticipantHi Radu,
I had tried that intially but gave it another try, ensuring I copied the code correctly. This piece of code doesn’t work for me and display all 3 again.
April 15, 2016 at 18:05 #116866RaduModeratorAdd both functions this to functions.php child theme
COPY CODEfunction remove_menu_links() { 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_init', 'remove_menu_links', 9999 ); function remove_admin_bar_links() { echo "<style>\n"; echo '#wp-admin-bar-new-kleo-testimonials,#wp-admin-bar-new-kleo_clients,#wp-admin-bar-new-portfolio { display: none !important;}'; echo "\n</style>"; } add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 19, 2016 at 17:36 #117669RaduModeratorGreat
Have a nice week
Cheers
RAdu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.