[Resolved] Header with Logo, menu and phone number

Home Forums Support [Resolved] Header with Logo, menu and phone number

Home Forums Support Header with Logo, menu and phone number

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1117556
    Nacho

    Hello,

    I was wondering how could I achieve a header like the images: https://d.pr/i/Rf1O0S and https://d.pr/i/8LrSXV

    In desktop have: Logo – Menu – Icon with phone number
    In mobile: Logo – Icon with phone number and below centered the hamburguer icon for the menu

    The example to follow is in the topic website URL.

    #1117934
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Let’s give this a shot:

    1. Set the navigation location to “Float Right”.
    2. Add your icons/phone number to the Header widget area in Appearance > Widgets.

    Then let me know your URL and I can provide some specific CSS to achieve that layout 🙂

    #1119575
    Nacho

    Hello Tom and Happy New Year!

    I´ve just done what you told me and edited the post with the website URL so you can check it out.

    Thanks a lot and have a good day.

    Bests,
    -Nacho.

    #1119935
    David
    Staff
    Customer Support

    Hi there,

    try this CSS for the desktop:

    .inside-header {
        display: flex;
        align-items: center;
    }
    .header-widget {
        top: unset !important;
    }
    .header-widget .widget {
        padding-bottom: 0 !important;
    }
    
    @media (max-width: 768px) {
        .inside-header {
            flex-wrap: wrap;
        }    
        .site-logo {
            order: -1;
            margin-right: auto;
        }
        .main-navigation {
            flex: 1 0 100%;
        }
    }
    
    @media (min-width: 769px) {
        .header-widget {
            order: 5;
        }
        .main-navigation {
            margin-left: auto;
            margin-right: auto;
        }
    }

    I am not sure there is enough room to have logo and phone number inline on mobile devices. Could add Logo (left) / Menu ( right ) and then have the phone number above or below – let us know

    #1125377
    Nacho

    Hello David,

    Thanks for the code.

    I´ve just updated the URL of the web that has the logo left and the phone right so you can check them out and see if possible in GP.

    Let me know if there is anything I can do to help.

    Thanks a lot.

    #1125923
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Did you try what David and I suggested? If so, can you switch the URL back to your site so we can see the result/what needs to be tweaked?

    Let me know 🙂

    #1125925
    Nacho

    Hello Tom,

    Yes the CSS is already in my website. I´ve just swiched the URL back to my site.

    Thanks a lot.

    #1126153
    Leo
    Staff
    Customer Support

    So what’s the current issue?

    I do see the layout as requested in the topic title:
    https://www.screencast.com/t/sl3snu7Qvoz

    #1126463
    Nacho

    Hello Leo,

    In desktop is working fine. The problem comes in mobile because we need to have the logo left, phone right and menu below like in this image https://d.pr/i/csejDY

    Thanks a lot.

    #1126578
    David
    Staff
    Customer Support

    Updated the CSS here

    #1126878
    Nacho

    Hello David,

    It worked! Thanks a lot for your help to all.

    Have a nice day.

    Thank you!

    #1126905
    David
    Staff
    Customer Support

    You’re welcome

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