WP for Wordpress

How to Hide WooCommerce Product Images



You can hide WooCommerce product images from the product detail pages by using the following code. To remove the image add the line of code below to your theme’s functions.php file (found at wp-content/themes/themename/functions.php):

remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 ); 

This removes the featured product image from the product page but can leave the column intact, pushing the page content over and looking horrible: the above code hides the actual image and the place still shows empty rectangle.

 to remove fully simple add the css code to your theme style sheet
 .single-product .product .summary { width: auto; }


Responses

0 Respones to "How to Hide WooCommerce Product Images"

Post a Comment

AddThis

 

Recent Comments

Return to top of page Copyright © 2014