[Resolved] Instagram App like header interface for mobile/tablets

Home Forums Support [Resolved] Instagram App like header interface for mobile/tablets

Home Forums Support Instagram App like header interface for mobile/tablets

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #995572
    webyogi

    Hi Guys!

    How do I achieve Instagram App like simple header structure/interface for mobile and tablet displays with:

    1. Logo/Title in the center
    2. Burger menu icon in the top left (which slides up the full menu)
    3. Call button top right

    Thanks in advance.

    #995633
    Leo
    Staff
    Customer Support

    Hi there,

    You can likely use the mobile header option with some CSS for that:
    https://docs.generatepress.com/article/mobile-header/

    So you only want that for mobile/tablets?

    Any chance you can link us to the page in question so I can see your current layout?

    You can edit the original topic and use the private URL field.

    Let me know ๐Ÿ™‚

    #995839
    webyogi

    updated the private url field. Kindly advise.

    #995859
    Leo
    Staff
    Customer Support
    #995860
    webyogi

    ok, lemme try adding the phone. back in a jiffy.

    #995873
    webyogi

    Added the phone. Now how do I get:

    1. Logo/Title in the center
    2. Burger menu icon in the top left (which slides up the full menu)
    3. Call button top right

    #995887
    Leo
    Staff
    Customer Support

    Add this CSS:

    .main-navigation.has-branding .menu-toggle {
        order: -1;
    }

    Then modify this:

    .whg-call-btn {
        background-color: inherit;
    }

    to this:

    .whg-call-btn {
        background-color: inherit;
        order: 1;
    }
    #995893
    webyogi

    Brilliant! All great now.

    Although one small problem – sticky header/navigation, the order is messed up when you scroll down.

    Btw I had added this to center the title text:

    .navigation-branding {
    margin: 0 auto;
    }

    #995899
    Leo
    Staff
    Customer Support

    Add this as well:

    .main-navigation.has-branding .menu-toggle, .main-navigation.has-sticky-branding.navigation-stick .menu-toggle {
        order: -1;
    }
    #995900
    webyogi

    Simple, elegant and brilliant !!!

    Thank you so much.

    #995902
    Leo
    Staff
    Customer Support

    Glad I could help ๐Ÿ™‚

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