Yönlendirme modunda ürünlerin üst kısmına otomatik kaydırma
Dosyada footer.php mevcut WordPress temanızın (child theme kullanın) sonraki kodu ekleyin:
<?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 – kaydırmanın tamamlanacağı kapsayıcının bir CSS sınıfıdır. Herhangi bir CSS sınıfı veya kimliği olan herhangi bir kapsayıcı kullanabilirsiniz…