Skip to content

Instantly share code, notes, and snippets.

@MarceloGlez
Last active July 13, 2021 17:21
Show Gist options
  • Save MarceloGlez/3fb54da9cd3029b374af07bbeeaade34 to your computer and use it in GitHub Desktop.
Save MarceloGlez/3fb54da9cd3029b374af07bbeeaade34 to your computer and use it in GitHub Desktop.
Desactivar efectos zoom, lightbox y slider de imagen en página de producto (Agregar líneas de código en function.php del child theme)
/*Desactivar efectos de foto en página de producto*/
add_action( 'wp', 'bbloomer_remove_zoom_lightbox_theme_support', 99 );
function bbloomer_remove_zoom_lightbox_theme_support() {
remove_theme_support( 'wc-product-gallery-zoom' );
remove_theme_support( 'wc-product-gallery-lightbox' );
remove_theme_support( 'wc-product-gallery-slider' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment