/** * Removes single product gallery */ function remove_woocommerce_gallery() { remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 ); } add_action( 'init', 'remove_woocommerce_gallery' );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter