Good afternoon,
I have a problem to let users download .pdf files (instead of navigating to the file in the browser).
I tried two things, without result :
1.
This html code in the page editor:
<p><span style=”color: #ff0000;”><a style=”color: #ff0000;” href=”
https://www.stagingxxxxxx/wp-content/uploads/2024/04/TPP_BasVroege_Essay_ThePerfectPicture.pdf” download>Download Essay Bas Vroege 240611</span></p>
(I can give you admin access to this staging site).
2.
Added this code in the .htaccess file to force download files :
AddType application/octet-stream .pdf
Any suggestions what to do?
Kind regards,
Theo