Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1188518
    marketinglaura
    Participant

    I set up my logo as an in-line menu item and it worked perfectly. On mobile though, it’s showing “Logo” in the list and I’m wondering how to change that. Ideally, what I’d like is to have the actual logo show up above the hamburger menu and have the word “logo” not appear in the menu.

    Thank you, as always, for the help!

    #1188519
    marketinglaura
    Participant
    This reply has been marked as private.
    #1188768
    Rue Nel
    Moderator

    Hello There,

    Thank you for posting in and the very detailed information. To resolve your issue and display a logo in your navbar on smaller screens, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    @media(max-width: 979px){
      .x-navbar .x-nav > li.logo-menu-item {
        display: none;
      }
    
      .masthead-stacked .x-brand {
        display: inline-block;
        float: none;
    
        text-indent: -99999px;
        text-align: left;
        width: 242px;
        height: 100px;
        background: url(http://newyorkcafe.net/wp-content/uploads/2016/09/NY-Cafe-Logo-Menu-2.png) no-repeat center center;
        background-size: contain;
      }
    }

    This should be the possible output:

    Please let us know if this works out for you.

    #1189344
    marketinglaura
    Participant

    Thanks! Tried this and it didn’t seem to do anything…

    #1189536
    Rad
    Moderator

    Hi there,

    It will not work since the first @media query has no proper close bracket.

    @media (min-width: 980px) {
        .x-logobar {
           display: none !important;
           visibility: hidden !important;
        }
        .x-navbar .x-nav > li.logo-menu-item > a {
            text-indent: -99999px;
            text-align: left;
            width: 242px;
            height: 100px;
            background: url(http://newyorkcafe.net/wp-content/uploads/2016/09/NY-Cafe-Logo-Menu-2.png) no-repeat center center;
            background-size: contain;
        }
    	.x-colophon.top .h-widget, .x-colophon.top a, .x-colophon.top .widget {
    color: white;
    }
    	.x-colophon.bottom .x-nav li a {
    color: #fff;
    }
    

    Please change it into this

    @media (min-width: 980px) {
        .x-logobar {
           display: none !important;
           visibility: hidden !important;
        }
        .x-navbar .x-nav > li.logo-menu-item > a {
            text-indent: -99999px;
            text-align: left;
            width: 242px;
            height: 100px;
            background: url(http://newyorkcafe.net/wp-content/uploads/2016/09/NY-Cafe-Logo-Menu-2.png) no-repeat center center;
            background-size: contain;
        }
    	.x-colophon.top .h-widget, .x-colophon.top a, .x-colophon.top .widget {
    color: white;
    }
    	.x-colophon.bottom .x-nav li a {
    color: #fff;
    }
      } /* this is the missing bracket */
    
    @media(max-width: 979px){
      .x-navbar .x-nav > li.logo-menu-item {
        display: none;
      }
    
      .masthead-stacked .x-brand {
        display: inline-block;
        float: none;
    
        text-indent: -99999px;
        text-align: left;
        width: 242px;
        height: 100px;
        background: url(http://newyorkcafe.net/wp-content/uploads/2016/09/NY-Cafe-Logo-Menu-2.png) no-repeat center center;
        background-size: contain;
      }
    }

    Cheers!

    #1191686
    marketinglaura
    Participant

    Works perfect, thanks so much!

    #1191755
    Prasant Rai
    Moderator

    You are most welcome. 🙂

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