I am trying to make a button that when clicked, automatically starts the download of a pdf file. I have been experimenting with images but so far nothing seems to work. Currently here is the code I am working with:
<a href="https://cdn.shopify.com/s/files/1/2034/4709/files/Newsletter-Image_Main.png?5709" class="action_button" target="_blank" download="Our Free Guide">Download Here</a>
I am obviously missing something, do I need to upload the file to a different location? Do I need to link the file path from shopify? You can check it out right here: https://uniquecampingmarine.com/pages/test. Any help would be much appreciated!
Yeah for sure!
I used this:
<a href="/assets/favicon.png" class="action_button" target="_blank" download="Our Free Guide">Download Here</a>
Just playing with it, it still won't download a file, even when I uploaded a different png to the asset files.
I am building the page right here if you want to view it live:https://uniquecampingmarine.com/pages/test
|48 seconds ago|