Archived topic
testimonials rotator testimonials page called archives
4 replies · Started by BeeLady11 on August 1, 2016
Hi
I have the Testimonials rotator plugin and on the Testimonials page, I would like to change the heading from 'Archives' to 'Testimonials' and centre it. I've asked the plugin people but they say it's because of the theme I'm using (GeneratePress).
Any help would be gratefully received, as I feel like I'm going in circles ...
The page is http://www.brokenbog.com/BB-WP/testimonials/
thanks :-)
Hello,
Is that page built by inserting a shortcode for each testimonial on a page? If so can you add those shortcodes to a page with title "Testimonials"? Let me know if I misunderstood :)
It looks like that page might be created by the plugin itself.
You would have to:
1. Hide the archives title:
.post-type-archive-testimonial .page-header {
display: none;
}
2. Add your new title using GP Hooks in the "Inside Content Container" hook:
<?php if ( is_post_type_archive( 'testimonial' ) ) : ?>
<h1 class="entry-title">Testimonials</h1>
<?php endif; ?>
Make sure to check the "Execute PHP" checkbox.
Thanks so much for this, Tom. It worked brilliantly!
You're welcome :)