• Resolved morpheus101

    (@morpheus101)


    Hi,
    First of all, a great plugin, Thank you!

    I have embedded the shortcode in an elementor shortcode widget and have set the pagination to ajax and given an id.

    Problem is everytime I pick the next page of reviews, the page reloads and scrolls to the top of the page meaning the user has to scroll down again to read the next review. Count is set to 1 due to spacing preferences.

    I have also tried to add the shortcode to a normal page (no elementor builder) but same thing happens.

    Is there a way to have the page refresh and return to the shortcode widget?

    Wordpress version: 4.9.6
    Theme: GeneratePress

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    @morpheus101

    This problem happens because the GeneratePress theme uses the WordPress “navigation_markup_template” filter to replace the pagination template used by Site Reviews.

    To fix this:

    1. use the pagination ajax option in the shortcode. i.e. [site_reviews pagination=ajax]
    2. Paste the code from this link into your active theme’s functions.php file: https://pastebin.com/pYqbJizD

    Thread Starter morpheus101

    (@morpheus101)

    @geminilabs

    All sorted. Fantastic support!! Thank you

    Plugin Author Gemini Labs

    (@geminilabs)

    @morpheus101

    Great! One other thing:

    I noticed that you have the reCAPTCHA option enabled in Site Reviews and that you are also using it on your contact form.

    Be aware that reCAPTCHA is implemented differently in every plugin. Some implement reCAPTCHA to take other plugins into account. Most do not. If you experience problems with review submissions, the first thing to do is disable the reCAPTCHA option and see if that fixes the problem as a reCAPTCHA conflict is usually the culprit (i.e. the reCAPTCHA script is being loaded more than once).

    • This reply was modified 6 years, 9 months ago by Gemini Labs.
    • This reply was modified 6 years, 9 months ago by Gemini Labs.
    • This reply was modified 6 years, 9 months ago by Gemini Labs.
    Thread Starter morpheus101

    (@morpheus101)

    @geminilabs

    Thanks for the heads up. I did try to submit a review and all worked fine. So does my contact form so I assume all is working nicely together.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ajax pagination scroll to top’ is closed to new replies.