Skip to content

Instantly share code, notes, and snippets.

@andrea-sdl
Created November 8, 2016 05:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save andrea-sdl/e3beaa8e2e3256cc4efa0f8527b627aa to your computer and use it in GitHub Desktop.
Save andrea-sdl/e3beaa8e2e3256cc4efa0f8527b627aa to your computer and use it in GitHub Desktop.
disable scrolling on woocommerce-tabs
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;})
@ClassyUX
Copy link

Thanks dude! This made my day a lot easier.

@andrea-sdl
Copy link
Author

Thanks dude! This made my day a lot easier.

Good to know it helped ;)

@harperdesignco
Copy link

Thank you!!

@kriskratz
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment