• Resolved Claudia

    (@twiggs)


    I have a sub-menu on my Blog and when I hover the Menu item that has that sub-menu, the sub-menu bar appears covering the Menu bar.

    How can I lower it, to be exactly below the Menu bar, instead of covering it?

    Thank you!

    This is the blog: https://www.aplacefortwiggs.com/ and the Menu item with Sub-Menu is Photography.

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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hi Claudia,

    I don’t know whether you have, or know a place to add this CSS;

    .topnav li {
     position: relative;
    }
    
    .topnav li ul {
     top: 29px;
    }

    If you do, that should resolve your query.

    Thread Starter Claudia

    (@twiggs)

    I tried to add that CSS and it didn’t work, the Sub-Menu jumped to the header!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try this instead;

    .topnav li:hover, .topnav li.hover {
     position: relative;
    }
    
    .topnav li ul {
     top: 29px;
    }

    Thread Starter Claudia

    (@twiggs)

    Sorry, but it doesn’t work…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Are you adding the styles right at the bottom in your stylesheet? If so, in which stylesheet? I don’t know your method, i.e if you’re using a Child Theme or Custom CSS plugin, or custom theme.

    Thread Starter Claudia

    (@twiggs)

    Ok, I wasn’t adding to the bottom, I was adding on the styles themselves. I looked for those styles and added what you told me to, but not on the bottom.

    I’m changing the theme itself. I know this is not the right way, but I couldn’t figure out how to make a child theme when I did this.

    I added in the bottom like you told me to, however it gets tricky to access the sub-categories. It’s like I have to hit a very specific point with my mouse, so that the sub-menu doesn’t disappear.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I see.

    How about changing the code’s value of 29 to 27 or 26 ?
    E.g,
    From this;

    .topnav li ul {
     top: 29px;
    }

    To this;

    .topnav li ul {
     top: 27px;
    }

    Thread Starter Claudia

    (@twiggs)

    Perfect!!! Thank you!

    I will donate something to you soon, because you’re from far my favourite moderator!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    :O ! You’re very kind.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to lower the sub-menu bar?’ is closed to new replies.