Support » Plugin: PlayPress » Remove download link

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joshua Goodwin

    (@joshuagoodwin)

    I’m not sure, but I guess you mean the download button that appears in Google Chrome’s HTML5 audio player? You could modify the plugin to add controlsList="nodownload" — find line 81 of playpress.php and replace

    $output .= '<audio controls preload="metadata">';

    with

    $output .= '<audio controls controlsList="nodownload" preload="metadata">';

    It’s not a very good or simple way, though. A better solution might be to disable the plugin and use WordPress’s built in player: https://codex.wordpress.org/Audio_Shortcode

    Thread Starter minimat

    (@minimat)

    Thanks for your answer, but it doesn’t work (button is still here, and the download works).

    I don’t know how to use the shortcode, could you give me an example?

    At the moment I add a song like this:

    [audio mp3="http://www.website.fr/wp-content/uploads/Song.mp3"]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove download link’ is closed to new replies.