-
AuthorPosts
-
January 4, 2020 at 12:10 pm #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
myrnaJanuary 4, 2020 at 7:29 pm #1170327Hey thehorsestore,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaJanuary 8, 2020 at 10:26 am #1171374hi 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
January 8, 2020 at 7:03 pm #1171558Hi myrna,
Thank you. Can you disable caching and minification for now?
Best regards,
VictoriaJanuary 9, 2020 at 4:17 pm #1171853like this?
January 10, 2020 at 5:00 am #1172054Hi,
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,
IsmaelJanuary 10, 2020 at 4:20 pm #1172251hi ismael,
this does not work :-(
January 11, 2020 at 5:10 am #1172342on 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.January 12, 2020 at 2:12 pm #1172522Thanks 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.
January 13, 2020 at 6:14 am #1172654Hi,
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,
IsmaelJanuary 17, 2020 at 1:37 pm #1175387Thanks ismael,
you can close this topic, it was the plugin product filter for woocommerce
January 17, 2020 at 8:34 pm #1175625Hi thehorsestore,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- The topic ‘Next page start on top’ is closed to new replies.