This topic has 11 replies, 4 voices, and was last updated 9 years, 3 months ago ago by chrismmmmm
Hello – wondering about how to turn off / hide woopress testimonials? we are going to try to use a different solution for testimonials and having two “testimonials” tabs is a bit confusing! – thanks- Chris
Hello,
Please provide us with a link where you have 2 testimonials tabs and the access to wp-admin panel.
Thank you.
Regards,
Eva Kemp.
Hello,
If you mean this testimonials http://prntscr.com/6brj8b
Please add following code into \themes\royal\framework\testimonials\assets\css\admin.css file.
#menu-posts-testimonial{
display: none;
}
Regards,
Robert Hall.
This works for hiding the tab – but wondering if theres a way to disable the entire testimonial functionality… as i think its hijacking my slug: site.com/testimonial/abc/
could this be happening?
as the new testimonial plugin the permalinks are giving back a 404 ( they are using site.com/testimonial)
thanks for the help!
Hello,
Sorry, but you should address this query to WordPress support forum, as Testimonials option is added by WordPress team by default.
Thank you for understanding.
Regards,
Eva Kemp.
Hello – please respond quickly if possible:
This is not correct at all:
“Sorry, but you should address this query to WordPress support forum, as Testimonials option is added by WordPress team by default.”
im looking at our woo-press theme and i see the woopress testimonial included there: woopress/framework/testimonials
please look into this and tell me how to turn this off for the theme –
it is causing me problems as it takes over the /testimonial/ url and im trying to use it for something else – thanks – Chris
I’m having the same issue … /testimonials/ is taken over by the testimonials custom post type and there is no built-in way to change the post type slug, which sucks. I want to keep testimonials but still be able to use a URL like /testimonials/ for a page, so all I really need to do is turn off the archive option.
Thanks for finding the exact file that contains the code. I’ll be able to figure it out from here and I’ll reply with a solution shortly.
WARNING: I HAVE ABSOLUTELY NO IDEA WHAT DAMAGE THIS COULD CAUSE ON YOUR SITE. YOU NEED TO MAKE A BACKUP OF THE DATABASE AND ALL FILES BEFORE DOING ANY OF THIS SO YOU CAN RESTORE IF IT BREAKS. DO NOT ATTEMPT THIS UNLESS YOU ARE FAMILIAR WITH BACKING UP AND RESTORING.
OK, writing a detailed procedure on how to turn off the testimonials post type is going to take awhile because basically, I need to write a plugin you can install that will deregister that post type upon activation. There are other potential situations that could arise that could cause the testimonials CPTs to come back too, so that sucks.
If you want an immediate way to get rid of them and not mess anything else up, then simply go into /wp-content/themes/woopress/framework/testimonials/woothemes-testimonials.php and replace
<?php
with
<?php return;
That should circumvent running any code associated with testimonials.
Next, you’d need to activate a different theme, then reactivate woopress (because testimonials get registered in the database upon activation, and deregistered upon deactivation (I believe)).
If you want to wait for a better, easier solution, I’m still working on it.
I’m not going to get a chance to create any kind of plugin for this tonight. If you can code, you may also be able to use this info, but it’s not a complete solution: http://wordpress.stackexchange.com/questions/3820/deregister-custom-post-types
I was able to disable the testimonials archive without getting rid of the testimonials functionality altogether. If you’re going to try this, back up your site and DB and make sure you can restore. This could bork the whole site if you do this wrong, and this might not work through updates of the theme.
If you want a way to get around this without massive effort and risk, just bite the bullet and change your page slug to something that won’t clash e.g. customer-testimonials and just use that URL instead of /testimonial or /testimonials
Disabling testimonials archive:
*. YOU BACKED UP, RIGHT?
1. open /wp-content/themes/woopress/framework/testimonials/classes/class-woothemes-testimonials.php
2. around line 100, change
'has_archive' => 'testimonials',
to
'has_archive' => false, // was: 'testimonials', see https://www.8theme.com/topic/turn-off-testimonials-in-admin/#post-86853
3. save that file.
4. go to Appearance > Themes
5. activate a different theme
6. activate woopress once again
7. go to Settings > Permalinks and save your permalink structure again (very important or else everything above will be for naught)
If you are using Jetpack and Custom CSS, you have to go to Appearance > Edit CSS and restore the previous revision of CSS because Jetpack starts a new, blank css revision when the theme switches.
You may need to go save your menus into the registered locations for the theme again (I didn’t need to).
Hey thanks jrevillini!
really appreciate your efforts on this!
good solution – glad it worked for you –
we are using strong testimonials – so with help from the developer we changes the slug to success stories :
in child themes functions.php added:
/**
* Customize the Strong Testimonials plugin.
*
* Change “testimonial” to “review”.
*/
function change_strong_permastruct() {
// permalink structure
add_permastruct( ‘wpm-testimonial’, “success-stories/%wpm-testimonial%”, array( ‘slug’ => ‘success-stories’ ) );
}
add_action( ‘init’, ‘change_strong_permastruct’ );
that worked for us
Tagged: admin, persuasive, templates, testimonials, turn off, woocommerce, wordpress
The issue related to '‘Turn Off Testimonials in admin’' has been successfully resolved, and the topic is now closed for further responses