• Resolved sus

    (@susgeek)


    We would like a download attribute added to the download links so that the mp3 doesn’t open in a new tab.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @susgeek

    Thank you very much for using our plugin. Instead of modifying the URL parameters, you only need to upload a .htaccess file to the “/wp-content/uploads” directory to force the download. Please, upload a .htaccess file with the following content:

    <FilesMatch "\.(mov|mp3|jpg|pdf|mp4|avi|wmv)$">
       ForceType application/octet-stream
       Header set Content-Disposition attachment
    </FilesMatch>

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Download attribute’ is closed to new replies.