View Full Version : Hide My footer on homepage
bdlphoto
May-24-2008, 09:19 AM
First let me say that that this forum has allowed me to customize my smugmug page just the way I wanted by simply reading other posts. Thanks to all of the folks who post such great tutorials and answers to questions.
My site is http://photos.bdlphoto.com/
I am 90% to where I want to be but cannot figure out one last thing:
I would like to be able to have some announcements on my gallery pages that do not appear on my front page, such as the text below the dashed line below. I had thought that the footer was a good way to do that, but I can't fugure out how to hide that footer on my homepage and have it show up on my gallery pages. Any help woudl be greatly appreciated.
------------------------------------------------------
"We Color Correct, Crop, and Remove Watermark From All Photos Before Printing.
Feel Free to E-mail Us (barry@bdlphoto.com) If You Don't Find What You Are Looking For Or If You Have Any Questions "
richW
May-24-2008, 11:31 AM
First let me say that that this forum has allowed me to customize my smugmug page just the way I wanted by simply reading other posts. Thanks to all of the folks who post such great tutorials and answers to questions.
My site is http://photos.bdlphoto.com/
I am 90% to where I want to be but cannot figure out one last thing:
I would like to be able to have some announcements on my gallery pages that do not appear on my front page, such as the text below the dashed line below. I had thought that the footer was a good way to do that, but I can't fugure out how to hide that footer on my homepage and have it show up on my gallery pages. Any help woudl be greatly appreciated.
------------------------------------------------------
"We Color Correct, Crop, and Remove Watermark From All Photos Before Printing.
Feel Free to E-mail Us (barry@bdlphoto.com) If You Don't Find What You Are Looking For Or If You Have Any Questions "Welcome to dgrin....:wave
Add a division in the footer, then hide it on the hompage. Something like this:
In the footer:
<div id="myFooter" align="center">We Color Correct, Crop, and Remove Watermark From All Photos Before Printing.</div>
Add to css section:
.homepage #myFooter {display: none;}
bdlphoto
May-24-2008, 04:42 PM
Worked perfectly. Thanks Rich.
Welcome to dgrin....:wave
Add a division in the footer, then hide it on the hompage. Something like this:
In the footer:
<div id="myFooter" align="center">We Color Correct, Crop, and Remove Watermark From All Photos Before Printing.</div>
Add to css section:
.homepage #myFooter {display: none;}
Kyle T
May-28-2008, 11:40 AM
Worked perfectly. Thanks Rich.
Thanks for the help, but how would you hide your footer on all other pages.
I need my footer to be on my homepage only.
Thanks
TexasFamily
May-28-2008, 03:03 PM
try something like this...
#myFooter {display: none;}
.homepage #myFooter {display: block;}
might have to use an !important in there too...to override the none...???
#myFooter {display: none;}
.homepage #myFooter {display: block !important;}
Edward
denisegoldberg
May-28-2008, 03:46 PM
might have to use an !important in there too...to override the none...???
Edward
Hey Edward -
I would guess that the !important isn't needed in this case. I usually try the CSS without it first. I believe the !important overrides stuff that is set elsewhere by smug - like the things in a theme that the site owner has chosen to use but where he or she wants to override some of it.
--- Denise
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.