Hi, I’m trying to add my line of script to stop the #anchor link to jump down so I can keep the screen while navigating the Tab section “OUR PRODUCTS” on my homepage
Here is the script that i inserted in code block :
jQuery(document).ready(function(jQuery) {
jQuery(‘#tabs’).easytabs({animationSpeed: ‘fast’, updateHash: false});
});
However, when I add in, even though the tab anchor link is not scroll down anymore, but it caused my top menu & logo bar stop shrinking when i scroll down the page :(
Is there any other query I can use to stop the anchor link scroll down without affecting the current theme jquery? The theme is so beautiful and well coded so I don’t want to mess it up so much.
Ah nevermind, I found this topic
https://kriesi.at/support/topic/how-to-prevent-anchor-links-to-jump-when-clicked/
Remove the smooth scrolling function in wp-content/themes/…/js/avia.js and delete following code helped me :D
//smooth scrooling
if(jQuery.fn.avia_smoothscroll)
jQuery(‘a[href*=#]’).avia_smoothscroll();
Sorry for bothering
