War Room

Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 10-07-2009, 06:45 AM   #1
Advanced Warrior
War Room Member
 
SusanneUK's Avatar
 
Join Date: May 2008
Location: Swansea, South Wales, UK
Posts: 796
Thanks: 389
Thanked 136 Times in 92 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to SusanneUK
Default Play music only on home page?

Hi guys

Wondering if anyone has done this. I have a client who wants one piece of music to play but only on the home page not on all the other pages, it's an mp3 file and I have got a good plugin that allows me to post the music in the sidebar or in a post/page but have not been able to find a way to have it just on the home page.

I am thinking perhaps I put something in the home.php. Does anyone know what code would make that happen and where to put it?

Thanks for any help
Sue

SALE---> Wordpress Christmas Theme Package Sale, 5 Themes for just $7 <---SALE
Featured Content Gallery Integration, 5 Designs to choose from!

One-to-One Wordpress Coaching Service Available at Low Hourly Rate - Let the frustration end now! Wordpress Installs, Theme Design, Site Tweaks & other services available - 20% discount for Warriors!
SusanneUK is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2009, 09:02 AM   #2
Warrior Member
 
bjradioguy's Avatar
 
Join Date: Oct 2008
Location: Florida
Posts: 24
Thanks: 1
Thanked 3 Times in 3 Posts
Social Networking View Member's Twitter Profile 
Default Re: Play music only on home page?

Hi Susanne,

I assume you mean you are using Wordpress since you talk about post/page, sidebar, and home.php.

There are a couple of way you can do this. One, as you state, is putting the player/code somewhere on the home page so that it is only loaded when someone goes there.

The second is a bit more complicated, but if you enjoy the player in the sidebar, but only want it on the homepage, you can create a sidebar for specifically for the home.php file and leave it off the regular sidebar that is displayed on all of the other pages.

Just rename the homepage sidebar to something like sidebarhome.php and replace <?php include(TEMPLATEPATH."/sidebar.php");?> in your home.php file to <?php include(TEMPLATEPATH."/sidebarhome.php");?>

Enjoy

Try Niche Finder - Its Free
bjradioguy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to bjradioguy For This Useful Post:
Old 10-07-2009, 12:04 PM   #3
Advanced Warrior
War Room Member
 
SusanneUK's Avatar
 
Join Date: May 2008
Location: Swansea, South Wales, UK
Posts: 796
Thanks: 389
Thanked 136 Times in 92 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to SusanneUK
Default Re: Play music only on home page?

Quote:
Originally Posted by bjradioguy View Post
Hi Susanne,

I assume you mean you are using Wordpress since you talk about post/page, sidebar, and home.php.

There are a couple of way you can do this. One, as you state, is putting the player/code somewhere on the home page so that it is only loaded when someone goes there.
Thanks Barry!

Yes I am using Wordpress sorry I forgot to mention that in my original post.

I would like to do the first method, putting code into the existing home.php because I don't want to mess with the theme too much by creating other files and you mention it can be done that way but what I need to know is where would the code go and what would the code be? I don't want to put the plugin into the home.php just make it so that one piece of music plays when someone lands on the home page and not on any other page in the site.

Got any ideas of what code to use and where to put it in the home.php?

Cheers and thanks for your help.

Sue

SALE---> Wordpress Christmas Theme Package Sale, 5 Themes for just $7 <---SALE
Featured Content Gallery Integration, 5 Designs to choose from!

One-to-One Wordpress Coaching Service Available at Low Hourly Rate - Let the frustration end now! Wordpress Installs, Theme Design, Site Tweaks & other services available - 20% discount for Warriors!
SusanneUK is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2009, 12:21 PM   #4
Advanced Warrior
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA (Currently in Montreal Canada)
Posts: 813
Blog Entries: 1
Thanks: 138
Thanked 217 Times in 146 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to mywebwork
Default Re: Play music only on home page?

Hi Sue

The basic HTML for embedding an MP3 file on your page is as follows:

Code:
<EMBED src="file.mp3" autostart=true hidden=true>
This will play the MP3 when the page is loaded, however the user will have no control over the file.

If you want to embed an MP3 player on your Home Page there are several ways of doing that - this article illustrates 3 common methods:

How to Embed MP3 Audio Files In Web Pages With Google or Yahoo! Flash Player

Bill
mywebwork is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to mywebwork For This Useful Post:
Old 10-07-2009, 12:41 PM   #5
Advanced Warrior
War Room Member
 
SusanneUK's Avatar
 
Join Date: May 2008
Location: Swansea, South Wales, UK
Posts: 796
Thanks: 389
Thanked 136 Times in 92 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to SusanneUK
Default Re: Play music only on home page?

Brilliant Bill and thanks!

All of those options are exactly what I need.

I did do some searching around myself before coming here to ask but I probably was not asking the right questions in search LOL.

Thanks so much for your help.

Sue

SALE---> Wordpress Christmas Theme Package Sale, 5 Themes for just $7 <---SALE
Featured Content Gallery Integration, 5 Designs to choose from!

One-to-One Wordpress Coaching Service Available at Low Hourly Rate - Let the frustration end now! Wordpress Installs, Theme Design, Site Tweaks & other services available - 20% discount for Warriors!
SusanneUK is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2009, 12:51 PM   #6
HyperActive Warrior
 
vagabondette's Avatar
 
Join Date: Sep 2009
Location: Currently in Mexico
Posts: 242
Thanks: 40
Thanked 32 Times in 23 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Yahoo to vagabondette Send a message via Skype™ to vagabondette
Default Re: Play music only on home page?

please, please, please try to talk him out of this. I have yet to meet anyone who like it when music is playing on a website unless they're on a specific artist site. In fact, I'd estimate that over 80% of the people I've talked to about this have said that audio/video playing will make them immediately leave a site unless it's very obvious how to turn it off.

So, unless your client is a musician, IMO they should really rethink this music thing because from what I've read it's one of the fastest ways to get people to leave your site.

Just my $.02.
vagabondette is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2009, 01:07 PM   #7
Advanced Warrior
War Room Member
 
SusanneUK's Avatar
 
Join Date: May 2008
Location: Swansea, South Wales, UK
Posts: 796
Thanks: 389
Thanked 136 Times in 92 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to SusanneUK
Default Re: Play music only on home page?

Quote:
Originally Posted by vagabondette View Post
please, please, please try to talk him out of this. I have yet to meet anyone who like it when music is playing on a website unless they're on a specific artist site. In fact, I'd estimate that over 80% of the people I've talked to about this have said that audio/video playing will make them immediately leave a site unless it's very obvious how to turn it off.

So, unless your client is a musician, IMO they should really rethink this music thing because from what I've read it's one of the fastest ways to get people to leave your site.

Just my $.02.
Thanks very much for the advise

Yes I am aware of this and did in fact make the suggestion but he really wants this and as this is for a "Drag Queen" (entertainer) it is kind of normal for that kind of site (did some research).. however the nice thing about the option Bill posted for me, I just finished inserting the google player option is that now the visitor has to click the play button for the music to play and all I did was add "Play me..." above it which I think is very cute and gives a nice compromise

Thanks again though,
Sue

SALE---> Wordpress Christmas Theme Package Sale, 5 Themes for just $7 <---SALE
Featured Content Gallery Integration, 5 Designs to choose from!

One-to-One Wordpress Coaching Service Available at Low Hourly Rate - Let the frustration end now! Wordpress Installs, Theme Design, Site Tweaks & other services available - 20% discount for Warriors!
SusanneUK is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
home, music, page, play

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 07:36 PM.