WordPress.org

Forums

How to add background on selected page? (2 posts)

  1. satimis
    Member
    Posted 3 years ago #

    Hi all,

    Twentyeleven
    Twentyeleven Child
    Cimy Header Image Rotator

    I succeeded adding embedded music on Home using the .mp4 file upload. On browsing Home music will play automatically.

    Now I expect adding background music to a selected page using another music file to be upload. So music will start to play automatically on browsing this page.

    I have been searching a while and couldn't find a solution. Please help.

    Thanks in advance.

    Rgds
    satimis

  2. CustoThemes
    Member
    Posted 3 years ago #

    Hi,

    I would suggest installing http://wordpress.org/plugins/audio-player/ and insert this code into the pages you wish the music to play on.

    [ Moderator note: please wrap code or log lines in backticks or use the code button. ]

    <?php if (function_exists("insert_audio_player")) {
    insert_audio_player("[audio:http://www.domain.com/path/to/song.mp3]");} ?>

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic