PDA

View Full Version : Remove navbar from homepage


finny99
Mar-20-2009, 05:09 PM
Hello guys
Was looking around and couldn't find out how to remove navbar from homepage, but I would like to have it on all other pages. Any ideas ?
Thanks

gregfinnegan.smugmug.com

MichaelBrown
Mar-20-2009, 05:18 PM
This is what Allen gave me when I needed the Nav Bars removed from my homepage.
Worked like a charm!

(Allen)
CSS to hide nav on homepage.

.homepage #navcontainer {display: none;}
.galleries #navcontainer {display: block;}

The galleries page has two names, homepage and galleries because they are
duplicates so the 2nd CSS is needed to unhide it after the 1st turned both
off.

Michael

jfriend
Mar-20-2009, 05:20 PM
First, fix an error in your CSS by removing the extra close brace in red or other CSS won't work:

#my_footer
{font-size:120%
color : #D2691E;}
font-weight: bold;}

Then, add this CSS to hide the navbar on the homepage:

.homepage #navcontainer {display:none;}

Edit to Allen - he isn't using the typical galleries page.

finny99
Mar-21-2009, 09:45 AM
First, fix an error in your CSS by removing the extra close brace in red or other CSS won't work:

#my_footer
{font-size:120%
color : #D2691E;}
font-weight: bold;}

Then, add this CSS to hide the navbar on the homepage:

.homepage #navcontainer {display:none;}

Edit to Allen - he isn't using the typical galleries page.

Cheers guys, I ended up putting navbar back on homepage, wanted to see how it looked

Thanks