WordPress.org

Forums

Testimonial Rotator
[resolved] Hide testimonial titles in widget (6 posts)

  1. satwinderrathore
    Member
    Posted 9 months ago #

    How can I hide the testimonial title in a widget.

    Thanks
    Satwinder

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

  2. typotamer
    Member
    Posted 9 months ago #

    I answered this two weeks ago... just a few posts down from yours. :)

    http://wordpress.org/support/topic/hiding-title-in-rotator-widget?replies=2

    (Now if only I could get a reply to my other issue... sigh.)

  3. satwinderrathore
    Member
    Posted 9 months ago #

    Thanks for reply @typotamer

    I just got the other solution here.

    apply_filters( 'testimonial_rotator_pre_widget_instance', $instance, $instance['rotator_id']);

    change to

    $instance = apply_filters( 'testimonial_rotator_pre_widget_instance', $instance, $instance['rotator_id']);

    and then apply the filter from your theme function file. :)

  4. typotamer
    Member
    Posted 9 months ago #

    Is that another way to hide the title, @satwinderrathore? (I'm not understanding the code...) :)

  5. satwinderrathore
    Member
    Posted 9 months ago #

    You need to change the code from this

    apply_filters( 'testimonial_rotator_pre_widget_instance', $instance, $instance['rotator_id']);

    to

    $instance = apply_filters( 'testimonial_rotator_pre_widget_instance', $instance, $instance['rotator_id']);

    in plugin file testimonial-rotator.php.

    Then you need to add the follow

    add_filter( 'testimonial_rotator_pre_widget_instance', 'home_rotator_hide_title' );
    function home_rotator_hide_title( $instance, $id = {your-testimonial-rotator-id} ) {
      $instance['hide_title'] = true;
      return $instance;
    }

    to your current theme functions.php file

  6. endurox
    Member
    Posted 3 months ago #

    I too had this issue. For now, I simply used my CSS file to hide the title. This leaves the plugin files intact so that when an update occurs my changes are not overwritten. Just another way, hope it helps someone.

    h2.testimonial_rotator_slide_title{display:none; visibility:hidden;}

    Not sure if this also hides the main shortcode title. But I didn't want the title showing up there either. The shortcode has ability to auto hide the title. Which reminds me... why am I simply not just using a text widget with the shortcode inside set to hide the title??? Will check that now.

Reply

You must log in to post.

About this Plugin

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

About this Topic

Tags

No tags yet.