Skip to content

Instantly share code, notes, and snippets.

@ofernandolopes
Last active November 23, 2017 00:07
Show Gist options
  • Save ofernandolopes/f4cd01c1b4859c59f758aa3979f0b380 to your computer and use it in GitHub Desktop.
Save ofernandolopes/f4cd01c1b4859c59f758aa3979f0b380 to your computer and use it in GitHub Desktop.
Hide WooCommerce product images
//Hide WooCommerce product images
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
/*Aligns the contents of the product after you remove the image from the product.*/
.woocommerce div.product div.summary, .woocommerce #content div.product div.summary, .woocommerce-page div.product div.summary, .woocommerce-page #content div.product div.summary {
float: right!important;
width: 100%!important;
margin-bottom: 2em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment