A Shopify store owner using the Woodstock theme wants product page buttons—populated from metafield URLs linking to files hosted in Shopify—to open in new tabs instead of the current tab.
Technical Solution:
Add target="_blank" attribute to the <a> tag rendering the button
The challenge: URLs come from product metafields rather than hardcoded links, complicating direct code modification
Implementation Steps:
Access theme code editor
Locate the file rendering the buttons (likely multicolumn.liquid or similar section file)
Use Ctrl+F to search for the class name multicolumn-card__link
Add target="_blank" to the corresponding <a> tag
Current Status:
The original poster struggled to locate the exact code snippet in their paid theme files
One community member successfully applied this solution to their own store
Discussion remains open as the original poster may need additional guidance on identifying the correct file/code location for their specific theme structure
Summarized with AI on November 1.
AI used: claude-sonnet-4-5-20250929.
On a product template, I’m using the promotions card section that pulls a URL from a product metafield to populate the CTA. Not all products have them but this one does.
The metafield URLs are links to files that sit inside Shopify, so not technically an external link I don’t think. I’d love these buttons to open in a new tab but I can’t figure out how to do that.
This is simple. Just open your code editor and open the file that is rendering the buttons. The button are a tag, inside the a tag just add this attribute target=“blank”. This will open the file on a new tab
Thanks, I’m not a pro with coding. Do you mind providing a bit more info on where I would find the file with buttons in it? And what the button tag looks like?
You are using a paid theme so to tell you the exact file or see it myself i will need access. If it was a free theme by shopify i could have told you the file name. You can check for file names like multi-column.liquid that renders the molticolumn section
So I’m not coding in a URL, otherwise this solution would work. I’m adding a URL to a product metafield and the section on the product page is populated based on the metafield.
Try searching with the class name with ctrl + f. Click inside the code editor and press ctrl + f a search bar will appear down below then paste this multicolumn-card__link.