Jump to content
Sign in to follow this  
funken

Move main nav with hook

Recommended Posts

funken

Hi, I'm looking to move the main nav to the right of the logo. I've seen other threads that do this with css but I'd like to do it with a hook instead. Can't seem to figure out how to do this correctly. I'm new to hooks but I understand the basics of them. Any tips? Thanks!

Share this post


Link to post
Share on other sites
catrina

Do you already know which hook you're going to use or do you need help with figuring out which one is correct?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
funken

Could use some help figuring out which one is correct. Everything I tried ended up adding a second navigation and not moving the original. Thanks!

Share this post


Link to post
Share on other sites
funken

yep, i don't think I'm calling the right thing in the function though. Any advice?

Share this post


Link to post
Share on other sites
kastelic

If you're inserting the navigation using a hook, why don't you remove the nav-bar from your page templates in Template Setup to avoid the double navigation?

Share this post


Link to post
Share on other sites
funken

Decided to just go ahead and do it in the css versus the hook. Although now I get a horizontal scroll bar where if I scroll to the right I get a black space to the right of my background image. Only seems to be happening in FireFox. Haven't tried IE yet. Any ideas on how to get rid of this black space? Thanks.

Share this post


Link to post
Share on other sites
bryan-hadaway

I was going to recommend CSS anyways. Add this additional CSS: `body{overflow-x:hidden}` Thanks, Bryan

Share this post


Link to post
Share on other sites
funken

Bryan that seems to remove the horizontal scroll bar but it still allows me to scroll right on a trackpad. For example, when I scroll to the right on my MacBook it will still reveal the black space. Something I have to live with? Thanks.

Share this post


Link to post
Share on other sites
bryan-hadaway

Well, is that only because you know about it? Would a user try to side scroll or accidentally do so? It's probably just a matter of giving your menu a pixel width so that it's div isn't running off the page. If you need further help I need a link. Thanks, Bryan

Share this post


Link to post
Share on other sites
funken

Bryan, Here's the link: http://thefunken.com/_stacyrolfe/ If you could point me in the right direction of where to put the pixel width of the menu that'd be great. As I said before it's only doing it in FireFox (haven't tested in IE though). Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×