We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Aug 16, 2021 1:41 AM
I've created an email template and added a button to download two files, a Word document and a PNG image. The Word file downloads fine but the PNG opens in the browser instead. I tried changing its format but it still does the same. I need it to be downloaded into the client's computer like the Word letter, how do I make it work, please?
Thank you.
Solved! Go to Solution.
Aug 16, 2021 2:44 AM
Hi @Flavs,
This can be done, but you'd have to code your own HTML button, see for example this resource: How to Create Beautiful Bulletproof Email Buttons That Absolutely Work
Best regards!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |
Aug 16, 2021 1:53 AM
Hi @Flavs,
This behavior can be achieved with the 'download' attribute in HTML, for example:
<a href="https://community.hubspot.com/html/@A1F4F82CBB93513A856AEAAAD84C5F0F/assets/HubSpot_Logo_12_2_20.png" download>
Browsers supporting HTML5 should then prompt a download of the file instead of open it.
As far as I know, there isn't any option to set the default HubSpot CTAs (Menu > Marketing > Lead capture > CTAs) or the buttons in the drag and drop email editor to behave this way. You'd have to create your own custom HTML CTAs or link right from the text.
To do so, click into a text module of your email and find the source code option to access the HTML:
or
Best regards!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |
Aug 16, 2021 2:41 AM
Hi @karstenkoehler, thanks for your reply. I needed it to be in a button format, we tried to change the code for the button but the solution doesn't work for buttons. Is it safe to assume it is just not possible?
Aug 16, 2021 2:44 AM
Hi @Flavs,
This can be done, but you'd have to code your own HTML button, see for example this resource: How to Create Beautiful Bulletproof Email Buttons That Absolutely Work
Best regards!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |
Aug 16, 2021 7:41 PM
Thank you, @karstenkoehler!
Aug 16, 2021 11:20 PM
Happy to help!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |