Accordion Top Fix text. (Scroll to active item - Easy Accordion Pro)
Wed Feb 14 2024 08:25:13 GMT+0000 (Coordinated Universal Time)
Saved by
@Ria
add_action( 'wp_footer', function () { ?>
<script>
(function($){
$(document).on('ready', function(){
$('.sp-ea-single>.ea-header a').on('click', function(e){
e.preventDefault;
var $this = $(this);
setTimeout(function(){
var targetTop = $this.offset().top - 150 + 'px';
$("html, body").animate({ scrollTop: targetTop }, "slow");
}, 500);
});
});
})(jQuery);
</script>
<?php },99 );
content_copyCOPY
Comments