• Resolved Newki75

    (@newki75)


    Hello,

    I work with Arras theme and by default the hover tab in the main navigation is underlined with a 2px bottom border. I’d like to replace this line and having the whole block in another color when I put my mouse on it.
    My site is still local but here is a live site using the same theme (I’ve tried the Arras forum but i’s inactive). https://www.savagenomads.net/
    As you may see it doesn’t seem to be in the normal css but in the library file : I don’t manage to use properly Firebug when it’s a “hiver” parameter, if you have a trick.
    Thanks in advance for your help

Viewing 9 replies - 1 through 9 (of 9 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This isn’t a WordPress issue. CSS-specific issues should seek help on CSS-specific forums.

    Try asking on the theme’s dedicated forum:
    https://www.arrastheme.com/forums/

    Thread Starter Newki75

    (@newki75)

    I’ve tried but nobody’s answer ?? never…

    On that site, the relevant CSS code is this:

    #main-nav ul.menu li:hover, #main-nav ul.menu li a:hover {
        border-bottom-color: #86C140;
        color: #333333;
    }

    It’s in a regular CSS file.

    Thread Starter Newki75

    (@newki75)

    I’ve already tried to change the color here but nothing happens.
    In fact, in theme’s option, you can choose between 6 colors and there are stored in a style file, in the theme’s library. It seems to overwrite the css stylesheet.

    If you have a trick where I can fix Firebug when it’s “hover”, I could see the css place and try to make changes to check if the color changes (as I do for the other changes but with Hover the code disappears) it could help. In fact, on my site, I don’t want to change the color but to have this green line covering all the navigation tab.
    Thanks trying to help me ??

    It’s really impossible to help with CSS issues without seeing the site (your site) live — CSS is totally theme and site specific. Firebug should show you exactly what’s going on. Do some homework on using Firebug — you CAN change the code in more than one window/place — as yes, hover disappears from the first CSS window. I changed the above code in Firebug and it worked fine — but it’s certainly possible that you have CSS code overriding it or an error that’s preventing it from working. Try validating your CSS (and HTML).

    Thread Starter Newki75

    (@newki75)

    Thanks for your help, I’ve found how to use Firebug for “hover” ??

    I will get rid of the border-bottom but which part of the css should I change to see my whole tab in pink when I put the mouse on a menu element. It’s not linked to the theme I just ask in general (I’m a professional yet ?? )

    This should work:

    #main-nav ul.menu li:hover, #main-nav ul.menu li a:hover {
        border: 0;
        color: #333333;
        background-color: #xxxxxx;
    }

    But also do be aware that it’s never a good idea to change theme files — you should really be making changes in a Child Theme or using a custom CSS option or plug-in. Otherwise all your changes will be erased when the theme is updated. Once you have that set up, copy the above code to the new CSS file.

    Thread Starter Newki75

    (@newki75)

    Great, it works ??
    Yep I get the philosphy. I will change of template for my next website or trying to write one.
    Thanks ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Main navigation hover’ is closed to new replies.