WordPress.org

Forums

Testimonial Rotator
[resolved] Hiding Title in Rotator Widget (4 posts)

  1. typotamer
    Member
    Posted 1 year ago #

    FINALLY, I have found a Testimonial plugin that, with a bit of CSS tweaking, displays images the way I need them to display. Thank you, thank you!

    Now my only problem is that I'd like to hide the Testimonial Title in the widget. But I can't figure out how to do that. Could you help please?

    Thanks in advance!

    Terry

    https://wordpress.org/plugins/testimonial-rotator/

  2. typotamer
    Member
    Posted 1 year ago #

    Found it!

    In the plugin editor, open the file:

    testimonial-rotator/testimonial-rotator.php

    Look for:

    $show_title = isset($atts['hide_title']) ? false : true;

    and replace with:

    $show_title = isset($atts['hide_title']) ? false : false;

    Ta-Da! :)

  3. JeremyBorum
    Member
    Posted 5 months ago #

    Perfect! Simple. This allows for titles in the quote list that do not appear in the widget. Love it.

  4. ZeroGravity
    Member
    Posted 2 months ago #

    It's best not to edit the core of a plugin if you can avoid it. Your changes will be overwritten when you update. There is another method you can use that seems to have more options than the widget provides.

    Add the shortcode to a text widget.
    [testimonial_rotator id=121 hide_title="true"]

    You may need to add this to your functions.php to enable shortcodes in widgets.
    add_filter('widget_text', 'do_shortcode');

    Using this method it also picked up the scrolling transition effect I had in the settings. Using the widget it only seems to use fade. I would like to see a list off all the shortcode attributes.

    Another option would be to ask the author to add the option to the rotator settings and/or the widget settings. :) Please. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Testimonial Rotator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic