Created
November 8, 2016 05:52
-
-
Save andrea-sdl/e3beaa8e2e3256cc4efa0f8527b627aa 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;}) |
Thanks dude! This made my day a lot easier.
Good to know it helped ;)
Thank you!!
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks dude! This made my day a lot easier.