Dashboard > SmugMug > Home > Customization > How To Add Music
Log In   View a printable version of the current page.
SmugMug
How To Add Music
Added by Andy Williams , last edited by Sebastian Hosche on May 28, 2008  (view change)
Labels: 

Music is something many folks want to add to their websites. Some folks absolutely hate music on websites, others don't mind it. Used carefully, it can be fine.  Start with the music OFF... but if you don't, be sure to have a button that will allow it to be turned off.

You'll want to use music that you have rights to, so be careful about violating any copyrights.

 A great source for music to embed them on your page is Magnatune. Just go to their page, pick any genre you like and look for an artist or an album. When viewing an album page, you should see a link "embed this album on your own page". Click on it to get the code that you have to embed into your site. Make sure that you select to have the music off by default so that your visitor can choose to turn it on if he wants to.

Here's a sample of the small player embedded into a gallery description.

You can also host your music on another site (even a free site, like Google Pages) and then play it on your SmugMug site. Here is some example code.

<embed src="http://www.yourstorageplace.com/yourmusicfile.mp3" width="70" height="18" autostart="false" loop="true">

IMPORTANT!  If you put your music in your footer section, be SURE to wrap it in a div.  Like this:

<div id ="my_music"> <embed src="http://www.yourstorageplace.com/yourmusicfile.mp3" width="70" height="18" autostart="false" loop="true"> </div>

And then use THIS CSS in your CSS Box to make it work only on your homepage, or a gallery page.

#my_music {display: none;}
.homepage #my_music {display: block;}

or
.gallery_XXXXXX #my_music {dispaly: block;}

If you want to discuss music on your website, make a post on Dgrin's Customizing Forum.

References

Notes: remember, you must have the right to use the music on your website, so be careful.

I tried and tried to make this code work, and I think I found the problem:
<div ="my_music">
SHOULD BE
<div id="my_music">

Posted by Anonymous at Apr 29, 2008 23:59 | Reply To This

How do you get rights for songs?

Posted by Anonymous at May 07, 2008 08:47 | Reply To This

Well, I am not new to edit web-pages, but pasting the code from Magnatune in my Gallery description is not working. In fact the explanation here "How to add music" tell all about where to get the music from, but not a word about how to add music...like where to past the code, and tips in case like mine when is not working.

Posted by Anonymous at Jun 11, 2008 00:13 | Reply To This
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators