Join the Voxel Guide Community!

Get Involved

Infinite Scroll Post Feed Elementor Pro

Description/Instructions

Add infinite load scroll post feed

Instructions

Add the custom code elementor pro to <body> - Start

<script>
let dhLoadMoreObserver = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
let dhLoadMoreButton = document.querySelector('.ts-load-more');
if (dhLoadMoreButton) {
dhLoadMoreButton.click();
}
}
});
});
document.addEventListener("DOMContentLoaded", function() {
let dhLoadMoreButton = document.querySelector('.ts-load-more');
if (dhLoadMoreButton) {
dhLoadMoreObserver.observe(dhLoadMoreButton);
}
});
</script>

  • JS
Copy Code

Let's Chat About this Snippet

Chat Toggle
Voxel Guide AI
Voxel Guide AI
Voxel Guide AI
Voxel Guide AI
Ask me anything about Voxel!
Send
Powered by AI24