Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1170219

    Hi there,
    When i am in my store and go to the next product page with my navigation below, the next page starts at the bottom.
    Can you advise how to change this?

    thanks a lot
    myrna

    #1170327

    Hey thehorsestore,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1171374

    hi victoria,

    sure no problem, when you start here and go to page 2 the problem shows
    https://thehorsestore.nl/product-categorie/ruiter/kledingaccessoires/

    Thank you

    myrna

    #1171558

    Hi myrna,

    Thank you. Can you disable caching and minification for now?

    Best regards,
    Victoria

    #1171853

    like this?

    #1172054

    Hi,

    Thank you for the info.

    Do you want the window to scroll back to the top after navigating to the next or previous page? If that’s what you’re after, please try this snippet in the functions.php file.

    function ava_custom_script_mod(){
    ?>
    <script>
    (function($){
       $('.pagination a').attr('href', function() {
           return this.href + '#top';
       });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod');
    

    Best regards,
    Ismael

    #1172251

    hi ismael,

    this does not work :-(

    #1172342

    on Enfold paginated pages ( portfolio, posts etc. ) this code Ismael provides will work.
    Here a few years ago Josue posted a very similar solution: Link– i tested it on a portfolio page.
    And if i insert the code to developer tools ( Konsole ) i see that the adendum #top is there even on your page – but the link resulting on click is changed then. – It must have something to do how your commerce plugin formates the links.

    #1172522

    Thanks for your input guenni but i am still not sure what to do.

    It used to work fine……….

    I want to navigate to page 2 and then start the page on top so my clients can scroll down

    • This reply was modified 4 years, 11 months ago by thehorsestore.
    #1172654

    Hi,

    Thank you for the update.

    The script is working but the pagination preloader probably removes the anchor as @Guenni007 mentioned. Unfortunately, we don’t know exactly which script is causing that. Please contact the plugin authors for more info.

    Best regards,
    Ismael

    #1175387

    Thanks ismael,

    you can close this topic, it was the plugin product filter for woocommerce

    #1175625

    Hi thehorsestore,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Next page start on top’ is closed to new replies.