Personalized checkout and custom promotions with Shopify Scripts
Hello,
I have a PDF file within Shopify that is linked in my header as "Catalog".
I want this link to open in a new window. However, I can't find the link code anywhere in the code to add the "blank" script.
Theme is Dawn.
Any help is appreciated!
You will have to modify code inside header.liquid file. inside the for loop when the second instance is running you can add the blank attribute inside the <a> tag. the statement is like this.
if forloop.index == 2 ofcourse in liquid syntax. Or you can select the specific a tag of the catalog menu item with js and add the blank attribute
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025