Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    try adding this to your functions.php file:

    function new_testimonial_rotator_timeout($speed) { return 20000; }
    add_filter('testimonial_rotator_widget_timeout', 'new_testimonial_rotator_timeout');
    Thread Starter Draelren

    (@draelren)

    I didn’t even get a notification someone had replied… thanks for letting me know. I edited the source code and found a fix on my own, thank you though.

    I just went to testimonial-rotator.php, line 463, changed the line to:

    apply_filters( 'testimonial_rotator_widget_timeout', 30000 )
    Plugin Author Hal Gatewood

    (@halgatewood)

    If you ever update my plugin your changes will be wiped out. Just FYI.

    Hi Hal,
    I have tried adding your `function new_testimonial_rotator_timeout($speed) { return 20000; }
    add_filter(‘testimonial_rotator_widget_timeout’, ‘new_testimonial_rotator_timeout’);`
    To my website http//www.historicrydesociety.co.uk Function.php files
    I have developed my own theme using Artisteer
    When I added it to the wp function.php file it rendered this error
    Fatal error: Call to undefined function add_filter() in /homepages/39/d278883422/htdocs/.HRS_New2013/wp-includes/functions.php on line 3862
    So I tried the function.php file from my theme and got this error coade
    Parse error: syntax error, unexpected '}' in /homepages/39/d278883422/htdocs/.HRS_New2013/wp-content/themes/HRS_NewVer4/functions.php on line 752

    I’m not sure if I should be ending the fix with a } or not I have no real knowledge of PHP coding.

    If you want to have a look at the back end of my site let me know because it is behind Ultimate Maintenance Mode and I can turn it off I’m not sure why this is happening when the fix has worked for others.

    Is there any way to change the rotator speed without editing the .php file? I’ve tried inserting the code you suggested into the php file, but it did not work. I am not sure what I’m doing wrong, but it would be a heckuva a lot easier if the plugin were updated so that the ‘Seconds per Testimonial’ actually works, and the .php file didn’t need editing after each update.

    Plugin Author Hal Gatewood

    (@halgatewood)

    You need to be putting it in your functions.php file, if you put it there it should work and it won’t need editing after each update.

    I also tried adding this code to functions.php and no luck. Still rotates every 5 seconds even though it’s set to 20seconds in the plugin settings for the rotator I’m using.

    ———————————————
    function new_testimonial_rotator_timeout($speed) { return 20000; }
    add_filter(‘testimonial_rotator_widget_timeout’, ‘new_testimonial_rotator_timeout’);
    ———————————————

    Was this ever resolved? Any way you can push an update to the plugin site?

    functions.php amend worked for me. thanks

    Hal,

    I’m looking at the theme functions PHP section but am uncertain where to put the code you suggest? Please can you direct me where this code should be pasted?

    function new_testimonial_rotator_timeout($speed) { return 20000; }
    add_filter(‘testimonial_rotator_widget_timeout’, ‘new_testimonial_rotator_timeout’);

    My testimonials are in my sidebar widget and are showing up perfectly but just rotating too quickly.

    Thanks so much a WordPress Newbie!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Changing the Widget rotate speed’ is closed to new replies.