YITH Ajax Navigation with Infinite Scroll. How to?
-
Theme: Mystile by woothemes
Plugins: Woocommerce, yith ajax navigation, infinite scrollI am using “yith ajax navigation” for ajax filtering.
Earlier I was using Infinite scroll (https://wordpress.org/plugins/infinite-scroll/) with manual trigger. It was working fine, the problem I had was with the pagination. After filtering with yith ajax navigaion, you can still click next button and other products load (those who were filtered out).
To solve this I added this code in footer.php so that pagination also refresh while filtering:‘<script type=’text/javascript’>
/* <![CDATA[ */
var yith_wcan = {“container”:”.products”,”pagination”:”.pagination”,”result_count”:”.woocommerce-result-count”};
/* ]]> */
</script>’But now infinite scroll is not working and new page loaded when Next button is clicked.
How can I get this worked. I am new to this.
- The topic ‘YITH Ajax Navigation with Infinite Scroll. How to?’ is closed to new replies.