[Resolved] testimonials rotator testimonials page called archives

Home Forums Support [Resolved] testimonials rotator testimonials page called archives

Home Forums Support testimonials rotator testimonials page called archives

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #214533
    BeeLady11

    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 πŸ™‚

    #214550
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #214556
    Tom
    Lead Developer
    Lead Developer

    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.

    #220480
    BeeLady11

    Thanks so much for this, Tom. It worked brilliantly!

    #220481
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.