I have added a pagination to my view:
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-post-body view_template="Modèle liste articles MS"]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]Pas d'article pour cette catégorie[/wpml-string]</strong>
[/wpv-no-items-found]
<div class="ms-pagination">
[wpv-pagination][wpv-pager-nav-links previous_next_links="true"][/wpv-pagination]
</div>
[wpv-layout-end]
-----------------
it appears correctly on the page (see enclosed screenshot 21.25.28.png)
When I hover on page 2, a link which is the correct one appears - see screenshot 21.31.40.png (if I copy the link and paste it in my browser url field, the page 2 gets loaded)
But if I simply click on page 2, nothing happens, the page does not switch from page 1 to page 2
Also nothing happens when I click on the "Next" ("Suivant") link.
I have also tried all possible options, i.e. "manual pagination", or "ajax manual" or "ajax automatic" - see screenshot 21.28.41.png - but it remains impossible to use the link and switch from page 1 to page 2.
Hi, can you please try these troubleshooting steps first?
- Temporarily deactivate all plugins except Types and Views, and activate the default theme Twenty Seventeen.
- Choose the option "Pagination activée avec transition manuelle et AJAX" and test again. If the pagination problem is resolved, reactivate your theme and other plugins one by one until the problem returns.
- If the problem was not resolved, please open the browser console and try to use the pagination links again. If any JavaScript errors are shown please copy + paste them here for me to review.
Let me know the results and we can go from there.
Thank you for your quick answer.
Enclosed is the result from the Browser console.
Okay thank you. Typically this type of code points to a plugin conflict or a cached file. Please clear your browser cache and test again. If the problem is not resolved, I'll need to take a closer look. Is your site online? If so, please provide login credentials here in the private fields and I will take a look.
Okay I see the problem. The wpv-filter-meta-html tag had been removed from the output editor, so the search form wasn't in the markup of the page. That's why there was a javascript error. This tag is required, so I replaced it. This broke the layout of the page, so I did some more investigation. There were a couple of unclosed "div" tags in your search filters, so I added them. Please check now. If you want to show the filters, remove the hidden wrapper div in the Output Editor panel here: hidden link
Dear Christian,
You are saving my life! Thank you very much. However I am quite surprised to learn that the filter tags must be present even when we do not want to display any filter on the the page. Indeed, I had on purpose removed those tags as I did not want any filter to appear on the page...It is not so obvious that the pagination works only if the filter tags are present on the page 🙂 Anyway, I very much appreciate your support and help. I have tested the page and it now works. Thank you as well for having investigated far enough to make this page work without breaking the layout. I appreciate very very much.
Best regards
Francine