We have a page where people can open catalogs and when they click on the “Download” button it opens in a new page. I’m trying to edit the first button to link to a page on the site, but when I update it, the link downloads instead of opening in a new tab.
I’ve tried putting the html link in the button, the page name in the button, seeing if I can put target= “blank” in the code, and nothing seems to be working and is the same on different browsers. It has worked before when linking to the catalog off-site, but we need it to link to a page on shopify now.
Is there a way I can get the page to open instead of downloading?
With HTML, non-shopify pages or in some shopify theme cases, there’s making sure there is no download HTML attribute https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#download
In some cases on shopify put the file in an <iframe> on a custom page, with or without the default layout ({% layout ‘none’ %} etc)
It does or, or did, or that’s what the goal is.
With shopify served pages and rendering..
non-image files in shopify can get served as download URLs.
Merchants can’t change this it as it’s at the HTTP-headers level from shopify servers.
I don’t speak code, paul, so even if it’s “literally there” I don’t know how to edit it without messing something else up, hence why I am on the help forum.
If you can’t then give me your store collaboration access, then I will fix it for you. Give me your store URL and I will send the request. Then I will fix it.
If you think open post is not the place, then you can message me. Also, it may cost you some money if I do it for you. Just message me, and we will sort it out.
Removing the “download” tag makes the catalog appear at the top of the page now rather than going to it’s own page where it should be located. Not sure if there is different target text I can put there –I’m having our IT look into it, but will take a bit longer.