WordPress.org

Ready to get started?Download WordPress

Forums

GC Testimonials
[resolved] Pagination not jumping to top of page. (7 posts)

  1. mileskimberley
    Member
    Posted 9 months ago #

    When clicking on the page links at the bottom of the testimonials, the page is not being scrolled to the top of the page and is just staying at the bottom?

    Is there any way of fixing this?

    http://epic.tickledchillimarketing.co.uk/testimonial/

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

  2. tgd
    Member
    Posted 9 months ago #

    I've got the same problem on a site, currently in development at http://tripp.daisydesigns.ca/testimonials/. There are only 2 pages of testimonials, and clicking on the '2' forces the page to scroll all the way to the bottom. I've been using this plugin on 3 other sites, with various plugins installed, with no issues at all. I've disabled some plugins that I suspected could be causing this, but no change. Any ideas?

  3. tgd
    Member
    Posted 7 months ago #

    This still seems to be an issue. Any idea if it might have a fix, yet?

  4. devnz
    Member
    Plugin Author

    Posted 7 months ago #

    For a temporary fix, open gc-testimonials/assets/js/quickpager.jquery.js and at around line 117, find this code

    //hide and show relevant links
    selector.children().hide();
    selector.find(".simplePagerPage"+clickedLink).show();

    and add this line underneath:

    $("html, body").animate({ scrollTop: "0px" });

    So it reads:

    //hide and show relevant links
    selector.children().hide();
    selector.find(".simplePagerPage"+clickedLink).show();
    $("html, body").animate({ scrollTop: "0px" });

    Let me know how that goes :)

  5. devnz
    Member
    Plugin Author

    Posted 7 months ago #

    I have not heard back so am marking this as resolved.

  6. tgd
    Member
    Posted 4 months ago #

    Sorry I didn't get the message that this was posted. I'll try it right away. I'm surprised this fix has not be applied to the latest version of the plugin. Thanks Erin.

  7. tgd
    Member
    Posted 4 months ago #

    Perfect! Works like a charm.
    You should add that code to the next release, if it's not there already.
    Thanks.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.