IvyCat AJAX Testimonials
[resolved] Share buttons in footer show in IvyCat testimonials widget (2 posts)

  1. Ken Soszka
    Posted 3 years ago #

    Hi, great plugin, thanks for creating it! I use a share button plugin that puts share buttons in the footer of my posts. Unfortunately, when I use the testimonials widget the share buttons show in the testimonials too. The share button plugin that I am using is called Hupso Share Buttons. Here is a screenshot of my issue:


    I am comfortable with editing the plugin files, or using a custom template for the testimonials if you have any ideas.

    Thank You,
    Ken Soszka


  2. ivycat
    Plugin Author

    Posted 3 years ago #

    Hello Ken,

    It looks like that particular sharing plugin doesn't offer much in hooks or settings to disable this. I tried adding category to the testimonials and disabling it that way but no go. Anyway, I found a way that works, but bear with me, it's a bit more convoluted.

    On ~ line 266 in the ivycat-ajax-testimonials.php file (after $testimionial_data = array() ) add in this bit:

    do_action( 'ica_pre_loop_testimonials', $testimonials );

    I'll update the plugin later to contain this action hook and push it on our next release.

    Then just add this bit of code to your functions.php file:

    function remove_hupso_share_testimonials( $testimonials ){
      if( !$testimonials )
      remove_filter( 'the_content', 'hupso_the_content', 10 );
    add_action( 'ica_pre_loop_testimonials', 'remove_hupso_share_testimonials', 10 );

    Let me know if this works/doesn't work for you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • IvyCat AJAX Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic