WordPress.org

Forums

GC Testimonials
GC Testimonials causes another plugin to not work (5 posts)

  1. Alexis403
    Member
    Posted 1 year ago #

    Hello, I have installed the Cyclone Slider 2 plugin in my site in order to have a slider display. I've noticed that the slides will not cycle. Right now I have 2 slides in the slider and only one is showing. You can see what I'm talking about here: http://alexistmyers.com/test/

    In troubleshooting, I have deactivated all of my plugins and reactivated them one by one to determine which one could be causing the problem. I have found the GC Testimonials is the problem.

    As much as I love GC Testimonials and the results it's given me, it's caused me plenty of problems as well. I'm trying to stick with it because it's the only one that will give me the results I'm looking for, but I'm hoping I can find some type of code that will make it less problematic!

    Is there any code that will allow me to continue to use GC testimonials, and still have the Cyclone Slider 2 plugin work properly?

    And just for reference, I have used Cyclone Slider 2 in a client's site and it worked perfectly. You can see it in action here: http://www.24hrbookkeeper.com/

    Also, I previously had to put in code just to make the GC Testimonials plugin work properly after upgrading it. You can see the problem I was having and the code I used to make it work here: http://wordpress.org/support/topic/urgent-after-upgrade-testimonials-in-widget-not-showing?replies=15

    Any help will be greatly appreciated! I know it's the holidays, so response may be slow, but I'm hoping to hear something by the end of the week if possible. Thanks.

    http://wordpress.org/plugins/gc-testimonials/

  2. Chris Dillon
    Member
    Posted 1 year ago #

    The problem is that GCT uses an earlier version of the same jQuery plugin as your slider. The slider loads the newer version first and GCT overwrites it later. That's why the GCT cycle works but not the slider. To demonstrate, turn off GCT cycle in the widget and the slider should work.

    You can fix this by not loading the earlier version:

    // add_action( 'wp_footer', 'gct_widget_script' );

    and changing the widget parameters to work with the new version:

    function gct_widget_code() {
      // $output = '<script type="text/javascript">jQuery(document).ready(function($) { $("#tcycle").cycle({ fx: "fade", speed: 1500, timeout: 8000, pause: 1}); });</script>';
      $output = '<script type="text/javascript">jQuery(document).ready(function($) { $("#tcycle").cycle({ fx: "fade", speed: 1500, timeout: 8000, slides: "div.testimonial-widget" });</script>';
      echo $output;
    }
  3. Alexis403
    Member
    Posted 1 year ago #

    Ok, so the directions you gave me are partly working, but maybe I did it wrong? I need to be clear....

    Were you saying for me to delete the "add action" code?

    And then to replace the previous "function gct_widget_code" with the one you put here?

    That is what I did. I deleted the first code you mentioned above and then I replaced the existing function gct_widget_code with the second code you gave above.

    It made it so that the slider is now working (yay!) http://alexistmyers.com/test/, but the GCT widget now will not cycle. I had to take the number of testimonials showing down to 1 so that they wouldn't all be listed in a vertical line that passed below my footer. So that is just a temporary fix of course. Any more code you can give me to make the testimonials cycle correctly?

    And by the way, when you said to turn off the cycle in the testimonial widget, that did NOT make the slider work. But adding in that new function gct_widget_code did make the slider work, but again, the GCT testimonial cycle is not working now even when I have cycle selected in the widget.

    Hopefully I'm explaining this all correctly. And please be very clear in your instructions (i.e. "delete the following code" or "replace this code with that"), just so I know exactly what to do.

    Thanks for your help so far!

  4. Chris Dillon
    Member
    Posted 1 year ago #

    Sorry, I was rushing to post it. Bad nerd!

    You did great. I suffered a copy-n-paste error. Here's the corrected $output line:

    jQuery(document).ready(function($) { $("#tcycle").cycle({ fx: "fade", speed: 1500, timeout: 8000, slides: "div.testimonial-widget" }); });
  5. Alexis403
    Member
    Posted 1 year ago #

    That worked perfectly!! Thanks for all of your help, and happy holidays!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GC Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic