Create download link in bricks

Hey all,

I want to put the link of a file that is in the WordPress media section in the button element and when the user clicks on the button, the file will be downloaded. This was easily implemented in Elementor, but I don’t know how to do it in bricks.

2 Likes

Hi @jolia,

You can choose the file from the media library and then add a custom attribute “download”.


5 Likes

Shouldn’t this work on any type of link to a file or image? I am using an icon list linked to a file set dynamically (using ACPT) and when I set the attribute, it opens the image in a new tab, but doesn’t force a download. Is there another aspect to the settings that I’m missing?


I don’t think this is solved for Icon Lists or for dynamic media defined through custom fields.

Even when setting the attribute on the icon list thusly:

The output of the attribute lands on the ul, not the a, and therefore, does not force the download. Whereas, if there is a text link element set with an icon, the attribute lands on the link and the download works.

Since ICON LISTS are great for sets of media downloads, it would be helpful to see this implemented so one can set attributes per item in the list (e.g., one could be a download, the next could be open in a new tab, the next be set to open in the same window, the next could send an email, etc.).