Site logo

[Resolved] Centering logo on mobile header

Home Forums Support [Resolved] Centering logo on mobile header

Home Forums Support Centering logo on mobile header

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2135866
    pcdoctoratl

    I’v tried different css and haven’t been able to get the logo centered on the mobile header. I’ve probably messed something up and hope you all could help. Thanks so much!

    #2135872
    Leo
    Staff
    Customer Support

    Hi there,

    Try this:

    .site-logo.mobile-header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }
    .main-navigation.has-branding .menu-toggle {
        margin-left: auto;
    }
    #2135881
    pcdoctoratl

    Thank you, that solved it!

    #2135921
    Leo
    Staff
    Customer Support

    No problem 🙂

    #2430272
    Cynthia

    Ref. November 24, 2022 at 3:28 pm #2431967

    I am trying to center the mobile header logo also but when I use the CSS use provided #2135872 above, then my logo size becomes very small which I don’t want. I would like the size to remain as it is, I just want to center it. It is currently on the left in mobile view.

    I’m using this CSS currently:

    .navigation-branding img, .site-logo.mobile-header-logo img{
    width:300px;
    height:auto;
    margin-bottom:20px;
    margin-top:30px
    }

    I currently have mobile header set to ON

    #2430289
    Fernando
    Customer Support

    Hi Cynthia,

    I see. Can you start a new topic for assistance?

    Hope to hear from you soon.

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