• I use WPaudio for the audio player on my site and it is no longer being updated by the developer.

    Basically when you click the download button on the player it opens in the current tab, but I want the link to open in a new tab. I don’t know tones about coding, but as far as i can tell the change may need to be made here.

    Any help would be appreciated.

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, I was trying to do exactly the same and found the answer. I hope that it’s still useful…

    1) Go to the plugin’s folder (wpaudio-mp3-player)
    2) Open the file: wpaudio.min.js
    3) In the line no. 31, find this code:
    href=”‘+elem.href+'”>Download
    4) Replace it with:
    href=”‘+elem.href+'” target=”_blank”>Download

    I just added the target=”_blank”.

    Upload the file and enjoy.

    Thread Starter urbanrider

    (@urbanrider)

    Ahhh very cool I will give this a try!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WPaudio] Open download link in new window’ is closed to new replies.