x

Need help with Embedding code and attaching URL to uploaded asset

I have been struggling with this for a while and just can't work it out from all the online suggestions.

I want to embed some code into my homepage which will autoplay some background music.  I have uploaded the music file to the assets folder (file is called websitemusic.mp3).  I am just not sure of the URL that needs to go between the "   ".  I am very new to coding so learning as I go.

Below is what I have.  THis gives me a lovely little audio player, but its not loading the mp3 file  ... would appreciate some advice.  BTW I am on a Starter plan so can't use the app that comes with the professional plan.

<audio src="www.lighthousearttherapy.com.au/files/Websitemusic.mp3" controls autoplay loop>
</audio>

Thanks in advance for your help.

641 Views
Message 1 of 4
Report
3 REPLIES 3

Sorry - the code should have read:

<audio src="www.lighthousearttherapy.com.au/files/theme/Websitemusic.mp3" controls autoplay loop>
</audio>

640 Views
Message 5 of 4
Report

@resourceadmin

Fix this first....

image

633 Views
Message 5 of 4
Report

Thanks for your reply .... I feel very dumb ... but do you mean I change the source of the file so it has a https ?

i.e. <audio src="https://lighthousearttherapy.com.au/files/theme/Websitemusic.mp3" controls autoplay loop>
</audio>

If so, I tried it and it still doesn't work.

629 Views
Message 5 of 4
Report