• Resolved username201701

    (@username201701)


    I would like to insert a product shortcode into a recipe page, but I don’t want the image to show.

    Does anyone know the arg to remove product images with shortcodes?

    tyia

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello there,

    Can you please check this similar forum thread? Please take a look.

    Let us know if this works in your case.

    Hello @username201701,

    Try adding the below code on your theme’s functions.php. This will completely get rid of product images. Alternatively you can safely add with this plugin

    // Remove image from product pages
    remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );

    Check this out: https://jilt.com/blog/remove-woocommerce-product-images/

    Cheers!
    Naz.

    Hi @username201701

    Just to add – here is a guide on how to use the Code Snippets plugin.

    Should you require further help do let us know.

    Thanks

    Thread Starter username201701

    (@username201701)

    Thanks for your help. I see that it is not possible. I don’t want to remove all product images, only the image in one instance in which I’m using a shortcode to embed one product on an unrelated page.

    For example, [product_page id=”99″ display_image=”false”] or something along those lines. I’m not finding this solution anywhere online. I’ll try to find a work-around.

    I wonder if it’s possible to add this feature to future versions of WooCommerce? Or a premium extension?

    Thanks again

    Plugin Support Raif Deari

    (@rdeari)

    Hi @username201701 !

    Can you please share the page where you want to remove the image & the exact product you do not want to show the image for?

    In case it is just one product we can use a small CSS snippet to target that by the ID of the product and hide the image!

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove Featured Image SHORTCODE’ is closed to new replies.