[Resolved] Left align content of generate_inside_mobile_header hook

Home Forums Support [Resolved] Left align content of generate_inside_mobile_header hook

Home Forums Support Left align content of generate_inside_mobile_header hook

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1925892
    Bandara

    I’m using the generate_inside_mobile_header hook to insert some text but I can’t figure out how to make it left justified instead of right. I’m sure it must be something simple, but I’m missing it. I have a logo on the far left and I want to keep the hamburger icon on the right.

    #1925912
    Leo
    Staff
    Customer Support

    Hi there,

    Can you give that element a class and remove the inline HTML style first?

    Let me know ๐Ÿ™‚

    #1925939
    Bandara

    Sure! That’s done. The class is site-title-mobile.

    Do I then need to style it in custom css?

    #1925981
    Leo
    Staff
    Customer Support

    Try this:

    @media (max-width: 768px) {
        .mobile-header-navigation.has-menu-bar-items .mobile-header-logo {
            margin-right: 0;
        }
        .main-navigation .inside-navigation {
            justify-content: flex-start;
        }
        #mobile-header .menu-toggle {
            margin-left: auto;
        }
    }
    #1925998
    Bandara

    Perfect!

    I would have never figured that out on my own. Thank you.

    #1926043
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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