PDA

View Full Version : Trying to figure out how to add text to ONLY my homepage...


Ryan Armbrust
Dec-08-2008, 02:19 PM
I am trying to add a few lines of text below my footer that will only appear on my homepage. Just a little "Below the Fold" SEO...
I am using the "2 homepage" hack as well if that matters.
My address is http://www.Sniperphotography.com

As always, thanks to all the Smugurus for helping!

jfriend
Dec-08-2008, 02:29 PM
I am trying to add a few lines of text below my footer that will only appear on my homepage. Just a little "Below the Fold" SEO...
I am using the "2 homepage" hack as well if that matters.
My address is http://www.Sniperphotography.com

As always, thanks to all the Smugurus for helping!

Add the text to your footer like this:

<div id="myHomePageText">This is some text that only appears on my homepage.</div>

Then, add this to your CSS:

/* hides the homepage text everywhere except the homepage */
#myHomePageText {display:none;}
.homepage #myHomePageText {display:block;}
.galleries #myHomePageText {display:none;}

Ryan Armbrust
Dec-08-2008, 02:38 PM
Add the text to your footer like this:

<div id="myHomePageText">This is some text that only appears on my homepage.</div>

Then, add this to your CSS:

/* hides the homepage text everywhere except the homepage */
#myHomePageText {display:none;}
.homepage #myHomePageText {display:block;}
.galleries #myHomePageText {display:none;}



WOW, I think that is the quickest I have ever gotten a response.
Big thanks! I will give it a shot.