• On my products page when I upload a featured image it does not give me an option to unlink. I find it ridiculous the image is linked to itself and quite frustrating, as well.
    When uploading an image to a WP page it gives the attachment options but not in WooCommerce.
    How can I unlink my product featured images?
    Please, help. Thank you in advance!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • webmystery

    (@webmystery)

    Looking for the same solution. The product in question here is software so the image isn’t important . It doesn’t need to pop up in a larger light-box or anything. I want to remove the link.

    Thread Starter Jilliank

    (@jilliank)

    I found the resolution.

    To remove links from woocomerce single products images File Manager;

    wp-content;themes;(theme name); functions.php

    Add following code:

    function custom_remove_single_product_image_html( $html, $post_id ) {
    return get_the_post_thumbnail( $post_id, apply_filters( ‘single_product_large_thumbnail_size’, ‘shop_single’ ) );
    }
    add_filter(‘woocommerce_single_product_image_html’, ‘custom_remove_single_product_image_html’, 10, 2);

    Thanks, pasting that php into my (child) theme’s functions.php worked!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce Unlink Featured Images’ is closed to new replies.