WooCommerce adds classes to indicate when a product has a thumbnail specified, so you can address this with CSS.
.product .images { display: none; } /* hide images div by default */
.product.has-post-thumbnail .images { display: block; } /* show images div when thumbnail is present */
Related Posts:
- How do I delete all UNUSED images from my uploads directory?
- Did I do it right? Deleting images after deleting product. Woocommerce
- Woocommerce featured image of page – not product
- wordpress (woocommerce) add image to media library programmatically python
- Resize into square the single product image in woocommerce without cropping [closed]
- How to make footer area transparent? Using Avada and WordPress [closed]
- Product Images Low Quality After Updating From WP 3.5 to 4 [closed]
- When upload a PNG a noise appears in the thumbnails
- Exclude first image from a Woocommerce image gallery
- Why does wp_get_attachment_image_src return the wrong size, when the correct size exists?
- How to delete images from database with product
- WooCommerce Variation Swatches and Photos – get attribute thumbnail
- How can the alt be added to this wooCommerce category image?
- Bypass wp_safe_remote_get()?
- Image thumbnail on single product issue | WooCommerce
- Thumb doubles the image file size
- Separate Media Library for each user
- Bulk edit wordpress images alt and title attributes
- Alter media caption/description conflict in WordPress?
- Separate attachment images from post loop
- Loop through child images of a parent for a Nivo Slider
- Rename attachments during upload
- alt, title tags not showing
- Remove the http protocol from images
- Why can’t I edit certain images from the WordPress Media library?
- How can I store an image in the database with Transients API?
- How to prevent resized featured images?
- Get original image from thumbnail URL
- Display one random image, but only if landscape
- WordPress url image redirect to the homepage
- How to change image url?
- Bulk image rotation
- Is there a way to delete images from WordPress media library programmatically?
- Special purpose photos with each post
- WordPress – different icon image depends of comment number
- Change image url size in post editor (when cliking on image)
- Multiple images with Media Uploader on front-end
- Pull Random Attachments With Pagination
- image uploaded cant be shown
- Turn off image captions in gallery view?
- How to get default image sizes attribute
- Unyson Framework doesn’t show gallery images
- add_shortcode to capture URL screenshot not loading correctly
- Show image crop window on image upload
- Gallery with thumbnail carousel
- Uploaded images not displaying in network site
- Omit image captions from get_the_content()
- Specific image size is being generated without being registered
- How to limit the number of images displayed in the media window?
- Should I not compress my jpeg files before uploading to avoid double compression?
- Is it possible to preserve original images in order to change image size later?
- Generating a certain sized thumbnail on the fly?
- Need custom picture field for pages
- Only make custom image size if uploaded via Thickbox and attached to certain page
- Link listings with image
- Allow users to contribute images to a post
- How to add onclick event to widget image
- After Migration, images show up on a preview of the page but not the actual page [closed]
- Use default image as var
- How to apply image alt descriptions from media library?
- Specify automatically the height and weight of the images
- Image upload error?
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- Placing a featured image into header
- image URL changed in wordpress
- How to get post id of first child of the same post type?
- Can export gallery but can’t import it Wp all import
- Updating product image
- Maximum image width/height?
- Images not uploading on product page of woocommercr
- What’s are some best practices for responsive images (e.g. for section headers)?
- Shortcode not work in picture source srcset tag
- change the h3 subtitles of the wordpress gallery shortcode
- How to echo images Urls from a wordpress post, that are relally in the post
- imported post image as normal image instead encoded image
- Updated wordpress missing image upload area
- get_post_gallery with Gutenberg
- Site not showing Image in WordPress and in HTML code also which uploaded in root what is the solution for this?
- How to set a post featured image from an already made custom field
- How to find the largest images in wordpress post
- Alt attribute is not showing while the value is given in Media
- Alternative image sizes are too large
- Image automatically resized
- How to call thumbnail by aqua resizer in best practice. Specify image dimensions’s notify from GTmetrix
- WAMP install acts different than live install when uploading images
- Images Wont Display After Importing From Old WordPress
- How do i replace the title attribute of img tag with the image caption
- How can I hook and edit on the fly an image uploaded
- Make all images displayed in single.php a certain size
- wp_get_attachment_image_src
- I am trying to get metabox image with custom size
- Removing image dimensions from `the_content`
- Theme files and imagesnot loading on a mobile device
- Guaranteed Image Sizes
- Is there a different way to grab a thumbnail image than this?
- Multiple gallery thumnbnails on one page
- Change the avatar ratio?
- How to show file type of featured image?
- WP_Image_Editor – How to save the new size of the image in the sizes metadata
- Could a very long article slow down all website and wpadmin?