Auto scroll to products top in redirect mode
In file footer.php of your current WordPress theme (use child theme) add next code:
<?php if (isset($_GET['swoof'])): ?>
<script>
jQuery(function ($) {
setTimeout(function () {
$('html, body').animate({
scrollTop: $(".woof_products_top_panel_content").offset().top - 100
}, 777);
}, 333);
});
</script>
<?php endif; ?>
.woof_products_top_panel_content – is a CSS class of container where scrolling will be finished. You can use any container with any CSS class or id …
Troubles? Ask for Support!