Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #388742

    http://borstch.eu/nysajt/

    I’ve disabled my mobile menu and want the logo to be perfectly centered in the middle of header on all mobile devices.

    Is this possible to achieve?

    #389161

    Hey crewneck!

    Thank you for using Enfold.

    Try to add this on Quick CSS or custom.css:

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

    Regards,
    Ismael

    #646338

    This CSS is incorrect. The correct version is below. Thanks for the starting point, though!

    @media only screen and (max-width: 767px) {
    .responsive .logo a {
    display: inline-block;
    vertical-align: middle;
    }
    
    .responsive .logo {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    }
    }
    #646355

    Hi,

    Glad you got it sorted!

    Please feel free to let us know if you have more questions for us :)

    Thank you for using Enfold.

    Best regards,
    Vinay

    #650038

    Hi there, this didn’t work for me. When I added that code it put in a big blank space after?

    #651007

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    .responsive #top .logo img {
        margin: auto;
    }
    .responsive #top .logo {
        width: 100%!important;
    }
    

    Best regards,
    Yigit

    #651758

    Hi there, this didn’t seem to work? I think the shopping cart is pushing it over? Can I get the logo centered and the shopping cart to go FAR right? If the shopping carts needs to be smaller for that to work on mobile, that’s fine too.

    #652796

    Hi,

    We checked the page and the logo is in the center of the header container. Please remove browser cache or hard refresh the page.

    Best regards,
    Ismael

    #652802

    I got a developer to help…I’m not used to the longer turn around time for support on here lately :(

    #653708

    Hi,

    Glad you got it working, we’ve been very busy lately and there was a big developers meeting this week in Vienna.

    Best regards,
    Rikard

    #1025207

    Hi @BrendaSarg what was the solution for this? Thanks

    #1025422

    Hi,

    You can try this css code.

    @media only screen and (max-width: 989) {
      /* Add your Mobile Styles here */
      .responsive #top .logo {
        position: absolute;
        left: 50%;
        -webkit-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
        top: 0;
      } 
    
      .responsive #top #header_main {
        z-index: 3;
        min-height: 80px;
        position: relative;
      }
    
      .responsive #top .logo img {
        margin: 0;
        margin: 0 auto;
        max-height: 80px !important;
     }
    }

    Best regards,
    Ismael

    #1138436

    Hi Ismael,

    I tried all of these and the last one you just posted. Also tried all the other related posts but it still won’t center just fo a regular site without a shopping cart. Can someone please have a look and let me know what could be the problem why the logo won’t center? Thanks, Frank

    #1138773

    Hi,

    Thank you for the inquiry.

    You should adjust the vertical position of the logo. It’s not visible because it’s being covered by the top header.

    @media only screen and (max-width:767px) {
    .html_header_top.html_logo_center .logo {
        left: 50%;
        -webkit-transform: translate(-50%, 0px);
        -ms-transform: translate(-50%,0);
        transform: translate(-50%, 0px);
        top: 50px !important;
    }
    
    .responsive #top #header .logo img {
        max-height: 32px !important;
    }
    }

    Add this code at the very bottom of the Quick CSS field or the style.css file.

    If you need further assistance, please open a new thread.

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Center logo on all mobile devices?’ is closed to new replies.