Using word press and I want an image to link to a file, but instead of opening it I want the file to download
I have this but its linking to the file not downloading, any idea what I am missing?
Adding the
in the past has worked, but this was only on a text link not a image.
I have this but its linking to the file not downloading, any idea what I am missing?
Code:
<a href="%fullURLandfilename%.pdf" rel="attachment wp-att-494"><img class="alignnone size-full wp-image-494" src="%fullURLandfilename%.png" alt="some text" width="212" height="248" target="_blank" download=""></a></p>
Code:
download=""
Comment