Nav Bar Tweaks.
AndrewVernon
Registered Users Posts: 33 Big grins
Hey Guys,
Alright, I can't find any threads that address exactly what I am looking to do and have tried tweaking a couple of the other ideas to no avail.
I want to create a nav bar in smug mug that looks and acts like the one on my wordpress site www.AndrewVernonPhotography.com.
I have gotten pretty close, but there are some spacing issues, and while I've gotten the hover function to work for text, I want the background around the specific work I am hovering over, to also change colors like how it does on my wordpress site. The new background color behind the specific nav bar link would be #000000 instead of #282828, with the font going red when hovered over.
I KINDOF having it doing this now, but there are spacing issues with the area behind the text that changes colors.
Any ideas on how to do what I want?
Here's what I have so far on smug mug... http://andrewvernonphotography.smugmug.com/Landscapes/Florida/
Thanks!
Alright, I can't find any threads that address exactly what I am looking to do and have tried tweaking a couple of the other ideas to no avail.
I want to create a nav bar in smug mug that looks and acts like the one on my wordpress site www.AndrewVernonPhotography.com.
I have gotten pretty close, but there are some spacing issues, and while I've gotten the hover function to work for text, I want the background around the specific work I am hovering over, to also change colors like how it does on my wordpress site. The new background color behind the specific nav bar link would be #000000 instead of #282828, with the font going red when hovered over.
I KINDOF having it doing this now, but there are spacing issues with the area behind the text that changes colors.
Any ideas on how to do what I want?
Here's what I have so far on smug mug... http://andrewvernonphotography.smugmug.com/Landscapes/Florida/
Thanks!
0
Comments
/* Turn the navbar text a different color when the mouse hovers over it */
.sm-user-ui .sm-page-widget-nav-toplink a:hover {
color: #c43c3c !important;
background: #000000 !important; height:70px;
padding-top: 25px;
padding-bottom: 25px;
}
/*Nav Bar Customizations*/
.sm-page-widget-nav { background: #282828; height: 70px;
line-height: 70px;}
.sm-page-widget-nav a {color: #fff !important;
vertical-align: middle;}
.sm-page-widget-nav a:hover {
color: #000000 !important;}
Then add this:
You'll probably have to change a few more things, but that should get you closer.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Hmmm... I'm not seeing any difference. Any ideas? I really appreciate all the help you've given me today man.
I see you didn't change the page width yet...not that this will help, just an observation.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Any idea if it's even possible to make the top menu do what I want it to?
I'll have to get the Google Font code, so give me a few minutes or so....It's almost dinner time.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Wow wow wow. That's basically it! It's awesome! Thank you for your help! I barely know enough to be dangerous with all this CSS stuff and am blown away by what you and this forum have helped me do. Really appreciate it.
So, now I am going to stretch my luck... Two things: First, I noticed that my dropdown menus are getting weird when I go to hover over them. Somehow, some of the code from the Top menu is affecting them. Although, I'm not quite sure what code. Any ideas?
Second, the ONLY other thing that could be done to make the navigation even more similar between the two sites would be to get the background hover color to extend to exactly the halfway mark between the menu-link my mouse is hovering over, and the menu links on either side. If not possible, I am absolutely thrilled with how it is already, so it's not a huge deal! But, this would make the two menus basically identical.
I can take a look at the other issues later this evening and I'll post them when I find them.
The carrots is part of my WordPress code. Remember, I used the WP nav stuff, but you might be able to add them to yours. The carrot is actually a font and this is what I have on my nav. The '.menu li > a::after' is the WordPress stuff, so that wouldn't work on SM. The other stuff, including the font is Smugmug.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Remove this in bold:
That should get you closer now.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
In one of your HTML/CSS boxes, remove this in red:
Add this to your theme's CSS:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I went ahead and left this how you said so you can see what it's doing... Your suggestion DID fix how my dropdowns look when I hover on them. BUT, now my main menu hover background doesn't extend all the way to the top and bottom edges of my menu. Any idea how to target JUST that without affecting the dropdown menu?
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
That did it! Great... Any idea how to get that background color on hover to extend to the exact middle between the two menu links on either side?
And, new question... Think it's possible to replicate my footer at www.AndrewVernonPhotography.com on SmugMug? I couldn't even get close...
I think I understand. Remove this in red:
Then change 10px to 22px here:
As for the footer, you won't be able to replicate it because of the recent post stuff...among other things.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Mike, I don't see any carrots on your menus. Can you direct me to seeing what you did?
I might want carrots too. .
This:
Keep in mind, the code above is NOT going to work out of the box.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I am serious, I wanted to see a carrot next to each link.
Like this. Like this.
I should have known...
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
http://www.imagesinthebackcountry.com/portfolio/landscape/
That particular page you posted is from my WordPress site.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk