[Resolved] Extend horizontal submenu background

Home Forums Support [Resolved] Extend horizontal submenu background

Home Forums Support Extend horizontal submenu background

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #399480
    Shakespeare

    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!

    #399552
    Leo
    Staff
    Customer Support

    Hi there,

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

    #399553
    Shakespeare

    The black part. I want to extend it full width. https://fusion.shakescal.com

    #399583
    Tom
    Lead Developer
    Lead Developer

    You could try this CSS:

    .inside-navigation {
        position: static;
    }
    #399590
    Shakespeare

    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!

    #399764
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #399789
    Shakespeare

    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!

    #400034
    Leo
    Staff
    Customer Support

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

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

    #400042
    Shakespeare

    Hi Leo,

    The colors worked. I missed it my apologies.

    I’m referring to the mobile view, the primary sub-navigation doesn’t work well. See: https://image.prntscr.com/image/uxoFjVUhQB_nL2a18TJplg.png

    Please advise.

    Thanks

    #400087
    Tom
    Lead Developer
    Lead Developer

    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 */
    }
    #400097
    Shakespeare

    Nailed it Tom, cheers!

    #400100
    Tom
    Lead Developer
    Lead Developer

    Glad I could help! 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.