Jump to content

Archived

This topic is now archived and is closed to further replies.

briana

How to Highlight BrandNav Menu Item

Recommended Posts

briana

I want to highlight the DONATE menu item in my navigation (www.stilleasierthanchemo.com) by default without the user having to hover over the link. I've attached an example of what I'd like it to look like (run4massey.org). How do I change the background color of the DONATE link without changing the background color of the entire BrandNav menu list?

 

 

Share this post


Link to post
Share on other sites
Danny

Hi,

 

You will want to use Custom CSS, something like this:

 

#menu-item-31 {
background-color: #FBC000;
}
 
In the CSS above, I have used Google Chromes dev tools to inspect the donates menu item which has a unique ID, from that I can add individual styling. You will probably want to also change the hover state and link color. For that, you will need to add more custom CSS by targeting the menu again and using the a tag in your custom CSS to style the link color and also use the :hover pseudo class for the hover state.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
briana

Thanks!

 

The CSS you provided worked perfectly. I'm using the Chrom dev tool but am still having trouble changing the link color from #36bcab to #fff. Also, I don't know how to remove the hover effect.

 

(Sorry, total newbie here...)

Share this post


Link to post
Share on other sites
Danny

Try this:

 

#menu-item-31 a { color: #FFFFFF; }
#menu-item-31:hover { background-color: #FBC000; }
 
If you're a complete newbie, I would highly recommend Code School, sign up its free and do the dev tools course/interactive tutorial its awesome and will have a code ninja in no time. You should probably sign up for the premium service and do the Web design courses, it will be beneficial.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
briana

Thank you! I'll definitely look into Code School -- I want to learn more. Thanks again for your help!

Share this post


Link to post
Share on other sites
greenfly

i have marked this as resolved 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites

  • Similar Content

    • Liv Kundalini
      By Liv Kundalini+
      Hi -
      Pulling my hair out over here, and would love an assist!
      Site I am building, http://www.livkundalini.com/home, has a problem with the submenu items in the nav not appearing. 
      If anyone wants to see what the Nav should look like, feel free to look in the footer on the left hand side.
      Have tried disabling Pagelines and using the twentyseventeen theme, but problem persists.
      Saw this error (pasted at the bottom of this post) displaying in the inspector, and saw discussion of Jetpack potentially being a culprit. Disabled Jetpack, but the problem persists.
      Had the hosting company even flush the server-side cache, but no avail.
      Any thoughts? Please? It's the only thing keeping me from launching this site!
      Many Thanks,
      Todd
       
      WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403   O @ (index):7
    • russe-intensif
      By russe-intensif+
      Hi team,
      checking my site today, i'm surprised to see my MegaNav all in bottom of the pages, while it's in header.
      After getting to change it in couple of pages onto Template part (too time consuming !), i'm desperate and ask you for help :-)
      apprendre-le-russe-avec-ania.fr
      Thank you in advance !

    • dwpoyner
      By dwpoyner+
      Not sure exactly what is causing the issue. For some reason, why you view my site on mobile, the menu does not show up. It will pop up, but it is black. You can check it out here: http://dev.caryfbc.org. I'm also attaching a screenshot where I shrunk my browser down. Any suggestions?

    • khat
      By khat+
      I think I may have installed pagelines pro incorrectly, and then used features incorrectly. I installed first platforms framework theme and then the child, thinking I could do setup for child later. I tried to set up a background image, and tried custom css feature in pagelines dashboard. I had mistakes in my css, and just thought that if I deleted the info in the css custom feature in pagelines dashboard that the new information would overwrite the old info. The background image didn't respond at all, probably because I didn't have the child directory renamed. I then tried to use the LSS plugin to create css and added more css, possibly, somewhere -sigh-. I never did change the background image and get it placed properly. I used a workaround and in nested containers I placed a background image which worked well enough, so I moved on to try to create my nav bar/ menu bar. When I go to the Menus panel, there is NO area where I can place a menu on a page. I have read and reread and re- re- reread the instructions for placing a menu. I've used the pagelines editor to place a menu, however only HOME shows up. I've been at this for many hours. I've since uninstalled all of my pagelines items and reinstalled, thinking that it would restore all my changes to default, but no, it is still all there, with all my unresolved issues. I am completely at a loss as to what to do next.
    • Jarek
      By Jarek+
      How to make the Impulse menu sticky?
      Here is a site that seems like it is doing just that: http://www.manhattanperiodontist.com/
      Here is the site I am working on: http://boeriu.digitalvector.com/ 
      I have no problem showing the menu at the bottom, but when scrolling up it does not stick.  I tried to add Nav Pro menu but when I do that, it just shows on top and no matter what I try is not working as I want it to.
      Any suggestions?
×