View Full Version : Enter Here
TitaniumMom
Feb-17-2007, 12:24 PM
Hey again! 2 things:
1st - is there a way to have a link on the homepage under the slide show say something like "Enter Site Here" and then not have it show up on any other page? My slide show is in the footer
2nd - When I tried to hide the navbar on the homepage using
.homepage #menu {display: none;}
#menu {display: block;}
Where the <div class="menu">
it didn't do anything. I still see the navbar on the homepage. Am I missing something?
Thanks!
Heather
biancasblankets.smugmug.com
Mike Lane
Feb-17-2007, 12:46 PM
Hey again! 2 things:
1st - is there a way to have a link on the homepage under the slide show say something like "Enter Site Here" and then not have it show up on any other page? My slide show is in the footer
2nd - When I tried to hide the navbar on the homepage using
.homepage #menu {display: none;}
#menu {display: block;}
Where the <div class="menu">
it didn't do anything. I still see the navbar on the homepage. Am I missing something?
Thanks!
Heather
biancasblankets.smugmug.comSince you're using <div class="menu"> you need to do it like this:
.homepage .menu {display:none;}
.menu {display:block;}
And I'm not sure I follow what you're trying to do with your slideshow and the enter here thingy.
TitaniumMom
Feb-17-2007, 12:54 PM
That code didn't work either.
What I'm trying to do is have JUST the slide show on the home page, with no navbar etc. Then they click the link "enter here" and it takes them to the bio page I made (http://biancasblankets.smugmug.com/bio) and from there and on every other page will be the nav bar. I just wanted the slideshow and the banner with their name ( i dont have that up yet) on that "homepage". I want the bio page to be considered techinically the main front page with the slide show "homepage" just being the Enter page. Make sense?
Heather
Since you're using <div class="menu"> you need to do it like this:
.homepage .menu {display:none;}
.menu {display:block;}
And I'm not sure I follow what you're trying to do with your slideshow and the enter here thingy.
Mike Lane
Feb-17-2007, 12:56 PM
That code didn't work either.
What I'm trying to do is have JUST the slide show on the home page, with no navbar etc. Then they click the link "enter here" and it takes them to the bio page I made (http://biancasblankets.smugmug.com/bio) and from there and on every other page will be the nav bar. I just wanted the slideshow and the banner with their name ( i dont have that up yet) on that "homepage". I want the bio page to be considered techinically the main front page with the slide show "homepage" just being the Enter page. Make sense?
HeatherThat requires javascript, maybe a JS guru can chime in. The CSS you've got there hides your navbar on your homepage and displays it everywhere else.
TitaniumMom
Feb-17-2007, 01:01 PM
yes, it's supposed to do that, but for some reason it's not working, thats one part I'm trying to figure out. The second was how to have a link show up on the "homepage" (the "enter here") but not have it show up anywhere else, hehe. So I guess thats what we need the Java guru to help with eh? I am tring to see why the nav bar doesnt seem to hide on the "homepage" even though I have put in the correct code...is it working for you?
~Heather
biancasblankets.smugmug.com
That requires javascript, maybe a JS guru can chime in. The CSS you've got there hides your navbar on your homepage and displays it everywhere else.
Mike Lane
Feb-17-2007, 01:10 PM
CSS is pretty anal about how you do your comments. You've got this:
// Page Specific Stuff //
Change it to this:
/* Page Specific Stuff */
And your hidden navbar hack works.
TitaniumMom
Feb-17-2007, 01:15 PM
haha, well, I did that and yes, the nav bar went off the main page (homepage) but now does not display anywhere else...not good...
Allen
Feb-17-2007, 01:32 PM
That code didn't work either.
What I'm trying to do is have JUST the slide show on the home page, with no navbar etc. Then they click the link "enter here" and it takes them to the bio page I made (http://biancasblankets.smugmug.com/bio) and from there and on every other page will be the nav bar. I just wanted the slideshow and the banner with their name ( i dont have that up yet) on that "homepage". I want the bio page to be considered techinically the main front page with the slide show "homepage" just being the Enter page. Make sense?
Heather Try these, removes menu from homepage and preserves everywhere else.
.homepage .menu {display:none;}
.featured .menu,
.galleries .menu,
.bio .menu,
.menu {display:block;}
You need to set you slideshow to a specific height, it pushes the
"Click here to enter" down.
.homepage #mySlideshow {
display: block;
height: 420px;
}
The "click to enter site" is on every page. You need to put it in a div
<*div id="enterSite"><*a href="http://biancasblankets.smugmug.com/bio">Click Here To Enter Site<*/a><*/div>
Without the *'s
Then add this to the CSS
.homepage #enterSite {display:block;}
.featured #enterSite,
.galleries #enterSite,
.bio #enterSite,
#enterSite {display:none;}
Edit: added third virtual page for featured
Mike Lane
Feb-17-2007, 01:38 PM
Looks like you're using a hack to show and hide homepage stuff by using your navbar or something? The problem is that you're never actually leaving the homepage with many of your navbar links so you're always on a page where the body tag is classed with "homepage" which means that for any of those links (which appear to be anything where the address doesn't end in /gallery/XXXXXXXX) your navbar will be hidden. I don't see an easy way around that.
I'm not sure why you've made it as unnecessarily complex as it is. :dunno
EDIT: OIC, I didn't look in the generated source.
Still, it seems like a roundabout way to bugger a badger.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.