Site logo

Archived topic

Extend horizontal submenu background

11 replies · Started by Shakespeare on October 8, 2017

Viewing posts 1–12 of 12

Hi this is my first post and first purchase of generatepress.

Moving forward I tried Tom's horizontal menu but I would to ask how to extend the background color.

See screenshot: https://prnt.sc/guroaz

Thanks!

Hi there,

Which part? The grey or black? Can you link me to the site?

You could try this CSS:

.inside-navigation {
    position: static;
}

Hi Tom,

Now it fixed the issue. But one more thing, please check the link, how can I align the submenu list with the primary menu and make it contained.

See the link =) thanks!

Hmm, it's not possible to contain it like that unfortunately.

You can however center it:

.main-navigation ul ul.sub-menu {
    text-align: center;
}

ul.sub-menu li {
    float: none;
    display: inline-block;
}

Thanks Tom!

Now it's ok. One more thing, how do I change the hover background and just stick it to orange. See screenshot: https://goo.gl/3woqoC

Lastly, how do I revert it to normal mobile menu.

Thanks!

Have you tried Customizer > Colors > Primary Navigation > Background Hover?

Not sure what you mean by reverting it to normal mobile menu?

Try adding all of your custom CSS you added for the sub-menu in a media query like this:

@media (min-width:769px) {
    /* custom menu CSS in here */
}

Nailed it Tom, cheers!

Glad I could help! :)

This archived topic is closed to new replies.