Reply 169152 to: Thumbnail size image for 8theme widgets loading correctly

Avatar: virtualabode
virtualabode
Participant
August 1, 2017 at 10:04

Hi Olga

Thank you for getting back to me. I think I found the problem. The file content-widget-product.php in the Xstore theme has the code:

<img class="attachment-shop_thumbnail size-shop_thumbnail wp-post-image" src="<?php the_post_thumbnail_url( $product->get_id() )?>">

I’ve amended this to the following in a child theme which has temporarily resolved the issue:

<img class="attachment-shop_thumbnail size-shop_thumbnail wp-post-image" src="<?php the_post_thumbnail_url( 'shop_thumbnail' )?>">

Can you think of a better way to do this without the need for a child theme?

Is there a possibility this, or similar, update could be included in the next update for the Xstore theme?

Luke

Please, contact administrator
for this information.
Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.