Jump to content

Creating a Download button

Recommended Posts

Greetings

 

I'm trying to create a true download button — NOT a file "get" that opens in another Window/Tab…

 

Basic code should be along the lines of:

<a download href="asset_path/brochure.pdf">
  Download Brochure
</a>

I've had no success at integrating this into an existing button though.

Any Suggestions hmmm?

 

Thanks

 

 

 

 

Link to comment
  • Replies 4
  • Views 770
  • Created
  • Last Reply

Top Posters In This Topic

16 hours ago, tuanphan said:

Why dont you add a Button Block >> then in button url > click gear icon > Click File > Upload a file 

When users click button >> the file will be downloaded (except pdf, word...it will open in browser)

 

Client specifically wants the PDF to be downloaded, then opened by the recipient in a true PDF viewer.

There's too much variance in the way different web browsers' built-in PDF viewer are rendering the PDF – particularly spread/page view and interactive features. The PDF is created in Adobe Acrobat and is (relatively) standards-compliant.

Thanks

 

Link to comment
8 hours ago, BrentAC said:

 

Client specifically wants the PDF to be downloaded, then opened by the recipient in a true PDF viewer.

There's too much variance in the way different web browsers' built-in PDF viewer are rendering the PDF – particularly spread/page view and interactive features. The PDF is created in Adobe Acrobat and is (relatively) standards-compliant.

Thanks

 

I have no idea, you can consider compress it in a zip file then attach to button.

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.