WordPress.org

Support

Support » Plugins and Hacks » IvyCat AJAX Testimonials » [Resolved] Share buttons in footer show in IvyCat testimonials widget

[Resolved] Share buttons in footer show in IvyCat testimonials widget

Viewing 1 replies (of 1 total)
  • Plugin Author ivycat

    @ivycat

    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 )
        return;
      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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Share buttons in footer show in IvyCat testimonials widget’ is closed to new replies.
Skip to toolbar