• Hi,
    i want to hide the featured image from singe product pages, i’m using this code:

    add_filter('woocommerce_single_product_image_thumbnail_html', 'remove_featured_image', 10, 3);
    
    function remove_featured_image($html, $attachment_id, $post_id) {
        $featured_image = get_post_thumbnail_id($post_id);
        if ($attachment_id != $featured_image) {
            return $html;
        }
        return '';
    }

    but the featured image still appear in the single product page (only in the slider not as a thumbnail).
    please help.

    The page I need help with: [log in to see the link]

  • The topic ‘featured image remove’ is closed to new replies.