Home Forums WoodMart support forum Hide the product image on the single page product

Hide the product image on the single page product

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #540550

    myriamdaghfous
    Participant

    Hi,
    Can I hide the product image on the single page product (I want to keep just the gallery product images)?
    But I want the product image to be displayed on the shop page.

    Attachments:
    You must be logged in to view attached files.
    #540707

    Hello,

    You can set the product page thumbnails layout from Theme Settings >> Single Product >> Gallery >> Gallery layout.

    If you want to ask anything else then let me know I will check and give you a possible solution.

    Best Regards.

    #540732

    myriamdaghfous
    Participant

    Hi,
    No, I’m not talking about thumbnails..
    I want to hide the product image on the product single page (Just the first photo).

    Attachments:
    You must be logged in to view attached files.
    #540768

    Hello,

    Paste the below code into the functions.php file in your child theme:

    add_filter( 'woocommerce_single_product_image_thumbnail_html', function ( $html, $post_thumbnail_id ) {
    	global $product;
    
    	if ( $post_thumbnail_id === $product->get_image_id() )
    		$html = '';
    
    	return $html;
    }, 10, 2 );

    Best Regards.

    #540843

    myriamdaghfous
    Participant

    Hi,
    Perfect! It works very well, but it applies to all site products.
    Can I only apply this to a predefined layout ?
    Can you suggest an image slider plugin that only loads images from the product gallery like the Elementor image carousel in the PRO version. (See attached photo below)

    Attachments:
    You must be logged in to view attached files.
    #540908

    Hello,

    Sorry it is not possible to apply for this layout. It requires customization and beyond our support policy.

    You need to find a third party plugin to achieve more functionality that best suits you. We have not tested any plugins with WoodMart
    https://woo.com/document/product-gallery-slider-for-woocommerce

    Best Regards.

    #542177

    myriamdaghfous
    Participant

    Hi,
    Thank you Aizaz.

    #542215

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Hide the product image on the single page product’ is closed to new replies.