WordPress.org

Ready to get started?Download WordPress

Forums

MP3 downloadable instead of playing automatically (3 posts)

  1. essexhypno
    Member
    Posted 1 year ago #

    Hi

    I have the following code on my page at the moment:

    <img alt="free mp3" src="http://www.mywebsite.com/wp-content/uploads/2012/11/freetrackimage.png" width="300" height="150" />

    so when people click on it it automatically starts to play.

    What I want, is for them to be able to download it, not just stream it live.

    Can anyone tell my what I need to add to the code to prompt them to download it rather than open it directly?

    Thanks

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    Can you provide a link to the site? All that code would do is display an image.

  3. Rachel Baker
    Member
    Posted 1 year ago #

    You could just create an anchor element and use the mp3's location as the href

    Something like:

    <a href="http://yourdomain.com/linktoyourmp3file.mp3">link text</a>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.