Forked from andrea-sdl/disable-scrolling-wc-tabs.js
Last active
July 2, 2021 01:05
-
-
Save radosek/c92517e695e46e844e78782db7f28e5e to your computer and use it in GitHub Desktop.
disable scrolling on woocommerce-tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(".woocommerce-tabs li a").off("click"); | |
jQuery(".woocommerce-tabs li a").click(function (e) { | |
e.preventDefault(); | |
jQuery(".woocommerce-tabs li").removeClass("active"); | |
jQuery(this).parent().addClass("active"); | |
jQuery(".woocommerce-Tabs-panel:visible").hide(); | |
jQuery(".woocommerce-Tabs-panel:visible").hide(); | |
jQuery(jQuery(this).attr("href")).show(); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment