Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #369859

    I’ve enjoyed working with Enfold for a while, but with the recent change from the select box style mobile menu to the “slide out from the side” has left something to be desired for the mobile experience. Clients don’t like “menu” buttons overlapping their logo.

    So, I’m looking for an alternate mobile menu and I’ve got everything working well with one exception.

    I can’t for the life of me get the logo centred on 767px and below.

    I’ve added:

    @media only screen and (max-width: 767px)
    #top #advanced_menu_toggle {
    display: none;
    }

    to the css and that hides the menu, but I can’t get the logo centred???

    Any ideas? I’ve searched through the forum and other suggestions don’t work.

    • This topic was modified 9 years, 11 months ago by kork.
    #370012

    Hey kork!

    Can you post the link to your website please?

    Cheers!
    Yigit

    #370080
    This reply has been marked as private.
    #370090

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .responsive #header_main .inner-container .logo {
    margin: auto;
    display: block; }

    Cheers!
    Yigit

    #370102

    I tried that before, didn’t work. I just added it back as suggested above, still didn’t do it.

    #370109

    Hi!

    Please try centering manually with following code then

    @media only screen and (max-width: 480px) {
    .logo { position: relative; left: 20px; }}

    Best regards,
    Yigit

    #370121

    It’s in there, no change.

    #370278

    Hey!

    Please replace the code with this:

    @media only screen and (max-width: 767px) {
    .responsive .logo a {
    display: inline-block;
    vertical-align: middle;
    }
    
    .responsive.html_header_top.html_logo_center .logo {
    text-align: center;
    }
    }

    Remove browser cache then reload the page.

    Cheers!
    Ismael

    #370392

    Hi Ismael,

    I had to add width: 100%; to the .responsive.html_header_top.html_logo_center .logo class and it worked.

    Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Centering logo for mobile view’ is closed to new replies.