Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

[SOLVED] Is it possible to remove menu highlighting on home page?


  #1  
Old Jul 6, 2012, 11:02 PM
rogemj23
 
18 posts · Nov 2010
Appleton, WI
I'm trying to figure out a way to remove the highlight on the home page only so that when you land on the site none of the links are highlighted. I've scoured the forums, but haven't found any solutions. I think it has something to do with this line of code: li class="page_item current_page_item", but I don't want to change it for every instance, just for the home page. Any ideas? Thanks!

Atathualpa 3.7.7
WordPress 3.4.1
  #2  
Old Jul 7, 2012, 04:45 AM
juggledad's Avatar
juggledad
 
23,551 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
it does have to do with that, you just need to use a CSS selector of
HTML Code:
body.home .current_page_item {...}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 9, 2012, 10:26 AM
rogemj23
 
18 posts · Nov 2010
Appleton, WI
Thank you for the code, but unfortunately it didn't work. I added the following to CSS Inserts:

body.home current_page_item {
background-color: #B24467;
}

It did not seem to change anything. The website is http://www.andrearussell.com/new_site/.
Any other suggestions?

Thanks!
  #4  
Old Jul 9, 2012, 10:51 AM
juggledad's Avatar
juggledad
 
23,551 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
the CSS wasn't specific enough. You should learn to use the FireBug extension of FireFox. With it I see that this is the CSS being sed
HTML Code:
div#menu1 ul.rMenu li.current-menu-item a:link, 
div#menu1 ul.rMenu li.current-menu-item a:active, 
div#menu1 ul.rMenu li.current-menu-item a:hover, 
div#menu1 ul.rMenu li.current-menu-item a:visited, 
div#menu1 ul.rMenu li.current_page_item a:link, 
div#menu1 ul.rMenu li.current_page_item a:active, 
div#menu1 ul.rMenu li.current_page_item a:hover, 
div#menu1 ul.rMenu li.current_page_item a:visited, 
div#menu1 ul.rMenu li a:hover {
    background-color: #B24467;
    color: #F8F4EB;
}
add teh 'body.home' before each of those selectors...and change the color
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jul 9, 2012, 11:04 AM
rogemj23
 
18 posts · Nov 2010
Appleton, WI
Yes, that does remove the highlighting from the homepage, but from every other page as well. Is there a way to isolate this to just the home page? I tried adding body.home before each of them, but that didn't work.

I do use firebug, and I do see where you got that code from now. I hadn't scrolled down far enough before to see it.
  #6  
Old Jul 9, 2012, 01:51 PM
juggledad's Avatar
juggledad
 
23,551 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
please put it in and prefix them all with the 'body.home 'so they are
HTML Code:
body.home div#menu1 ul.rMenu li.current-menu-item a:link,
so I can see the results
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jul 9, 2012, 02:27 PM
rogemj23
 
18 posts · Nov 2010
Appleton, WI
OK, I put them in. Thanks!

Bookmarks

Tags
highlighted, home, navigation, page menu, rollover

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] highlight current menu item w/out highlighting children if parent is selecte tnandrick Page & Category Menu Bars 6 Nov 9, 2013 09:24 AM
Erratic page highlighting top menu jaytoups Page & Category Menu Bars 1 Oct 27, 2010 08:13 PM
[SOLVED] Remove Page Menu from Home (static page)... calculator Header configuration & styling 2 Jul 6, 2010 06:30 PM
Customising the current page highlighting thesis Page & Category Menu Bars 0 Jan 13, 2010 03:59 AM
Remove header on home page petebarnes Header configuration & styling 2 Aug 20, 2009 06:13 AM


All times are GMT -6. The time now is 12:31 AM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.