Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #884127
    Rick W
    Participant

    Hi! My nav on mobile sizes is turning transparent when collapsed. I can’t find where it goes wrong, should be a white background. Can you help?

    #884135
    Rick W
    Participant
    This reply has been marked as private.
    #884141
    Rick W
    Participant
    This reply has been marked as private.
    #884952
    Friech
    Moderator

    Hi There,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer.

    @media (max-width:  979px) {
    	.masthead .x-nav {
    		position: relative;
    	}
    }

    To center the menu, add this custom css

    @media (min-width:  980px) {.masthead-inline .desktop .x-nav {width: 66%;}}
    @media (min-width:  1290px) {
    		.masthead-inline .desktop .x-nav {
    	    margin-left: auto;
    	    margin-right: auto;
    	    width: auto;
    	}
    }

    Hope it helps, Cheers!

    #887724
    Rick W
    Participant

    Hi! The menu is centered now, thanks for that. But the mobile menu background is still transparent. Any thoughts on that?

    #887903
    Christopher
    Moderator

    Hi there,

    Please find following code :

    .masthead .x-nav {
        width: 82%;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0);
    }

    And update it to :

    @media (min-width:979px){
    .masthead .x-nav {
        width: 82%;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0);
    }
    }

    Hope it helps.

    #888114
    Rick W
    Participant

    Yes, that helped. Thanks a lot for the input!

    #888207
    John Ezra
    Member

    You’re most welcome! πŸ™‚

    #888765
    Rick W
    Participant

    Cheering to soon…

    On my computer everything works perfectly on every browser and screensize, but when i visit the website on any mobile device the menu still has a transparent background. Please help.

    #889395
    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.

    .x-nav-wrap.mobile.collapse.in {
        height: 350px;
    }
    
    ul#menu-main-menu-1 {
        margin-top: 120px;
    }

    Hope this helps – thanks!

    #889502
    Rick W
    Participant

    Yep, that’s it! Thanks!

    #889924
    Zeshan
    Member

    You’re welcome! πŸ™‚

  • <script> jQuery(function($){ $("#no-reply-884127 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>