Home Forums WoodMart support forum Thumbnails for Hotlink images

Thumbnails for Hotlink images

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #236216

    saurabhiit2003
    Participant

    Dear Team, We have some products for which the images are not stored in our server, but are hotlinked (directly from the merchant’s website). The images for such products are visible on the individual product pages, but not in the thumbnails.

    We checked the same for the default wordpress theme, and the thumbnails are showing up there. However thumbnails are not showing up with Woodmart theme. Can you suggest a solution to this? Link to all such products is mentioned below.

    #236229

    Artem Temos
    Keymaster

    Hello,

    Please, send us a screenshot of how it looks with a default WordPress theme and your admin access. Also, send a direct link to some example so we can test with different themes.

    Kind Regards

    #236245

    saurabhiit2003
    Participant

    Dear Team,

    Please find attached the screenshots of how it looks with Woodmart vs Default Theme.

    Also mentioned below is the example link of collections page where the thumbnails are not visible.

    Also mentioned store admin details in Private Content.

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

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    add_action( 'init', function() {
    	add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
    	remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 );
    }, 1100 );
    #236283

    saurabhiit2003
    Participant

    That worked like a charm! Thanks a lot team for your awesome support!

    #236387

    Artem Temos
    Keymaster

    Great, you are welcome!

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

The topic ‘Thumbnails for Hotlink images’ is closed to new replies.