How to set the seco...
 
Notifications
Clear all

How to set the second picture when hovering over the product picture?

2 Posts
2 Users
0 Reactions
1,395 Views
(@yg)
Eminent Member
Joined: 3 years ago
Posts: 31
Topic starter  

Now the default is to display the last picture. 😑


 


   
Quote
plaktheme
(@plaktheme)
Reputable Member
Joined: 5 years ago
Posts: 0
 

Hi @yg

Katrine here from Plak Theme support,

By default, when hovering over a product, the last image (if it exists) will show up.

If you would like to show the second image, I invite you to follow these steps :

 

  • From your Shopify dashboard, click Online store > Actions > Edit code
  • Open the file product-card-grid.liquid

  • Replace this code
<img class="secondary small--hide lazyload lazypreload" data-src="{{ product.images.last | img_url: grid_image_width }}" alt="{{ product.images.last.alt | escape }}">
  • With this one
<img class="secondary small--hide lazyload lazypreload" data-src="{{ product.images[1] | img_url: grid_image_width }}" alt="{{ product.images[1].alt | escape }}">
  • Click Save

 

Kind regards,
Katrine

Katrine | Technical support at Plak, Scrowp & Vantout
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as a Solved Solution


   
ReplyQuote
Share:

Welcome to the Shopify Forum Community provided by Plak ThemeLLC, a place where you can discuss about eCommerce and Shopify, solve technical issues, get help with Shopify Design, Apps integration, Marketing, Facebooks ad, Google ads and more.

Before posting, we invite you to read and follow the forum rules | We also support any questions related to Free Shopify themes :Dawn, Express, Minimal, Brooklyn, Narrative, Supply, Debut, Venture, Boundless and Simple