Music playing constant

  • Posted in : BookCard WP
  • tjbb6
    Participant

    Hi,

    I’d like to know if it’s possible to have a song or possibly a playlist play from the front cover all the way through the site? How would I go about it?

    tjbb6
    Participant

    My site so far….

    http://www.arifpierce.com/

    Mehmet S.
    Keymaster

    Do you mean a background sound?

    tjbb6
    Participant

    Yes exactly!

    Mehmet S.
    Keymaster

    Do you want it to have with autoplay feature?

    tjbb6
    Participant

    Yes

    Mehmet S.
    Keymaster

    Loop (repeat)

    tjbb6
    Participant

    Repeat

    Mehmet S.
    Keymaster

    – Upload your sound file to the Media Library, copy the image File URL ( not the browser address bar ) and use it in the src parameter of the following code.

    <audio id="bgsound" autoplay="autoplay" loop="loop">
    <source type="audio/mpeg" src="http://themes.pixelwars.org/bookcard-wp/wp-content/uploads/2013/07/horse.mp3">
    </audio>
    

    – Go to your front cover page,

    – Switch the Text tab of the content editor,

    – Paste the above codes to the bottom of the page.

    tjbb6
    Participant

    You’re a beautiful man.

    qelsey
    Participant

    Is there an option for the site visitor to turn off the music without muting their computer?

    Mehmet S.
    Keymaster

    You can use this:

    <a href="#" onclick="document.getElementById('bgsound').play(); return false;">on</a>
    <a href="#" onclick="document.getElementById('bgsound').pause(); return false;">off</a>
    
Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register