Viewing 5 replies - 1 through 5 (of 5 total)
  • I answered this two weeks ago… just a few posts down from yours. ??

    https://www.ads-software.com/support/topic/hiding-title-in-rotator-widget?replies=2

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

    Thread Starter satwinderrathore

    (@satwinderrathore)

    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. ??

    Is that another way to hide the title, @satwinderrathore? (I’m not understanding the code…) ??

    Thread Starter satwinderrathore

    (@satwinderrathore)

    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

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide testimonial titles in widget’ is closed to new replies.