Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
for example if the customer is using a google chrome browser ..the moment the customer clicks on a product in my collection page, i would like that product page open in a new tab...not in the current tab itself..because of this he/she has to go back and forth in the same tab to see the collection and the product...so if it opens in a new tab the customer can close the product tab..and continue to browse the collection...also in this way ,,, the customer can open the products in multiple windows and compare easily
Please help me with a solution..
Go to the Themes > Actions > Edit code > Snippets > product-grid-item.liquid file and target="_blank" attribute on <a> tag, please check screenshot for reference:
Cheers,
Tejas
Hello sooper_official,
Open this file:
Online Store-> Themes -> Edit code->Snippets->product.grid.item.liquid
Search this code
<a class="grid-product__image-link{% unless product.featured_image.src== blank %} grid-product__image-link--loading{% endunless %}" href="{{ product.url | within: collection }}" data-image-link>
Replace with this code
<a class="grid-product__image-link{% unless product.featured_image.src== blank %} grid-product__image-link--loading{% endunless %}" href="{{ product.url | within: collection }}" data-image-link target="_blank">
I Want To Open Internal Links (Product Pages) In A New Tab Using Dawn Theme.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025