[Support request] How To Place Search Box Below The Logo?

Home Forums Support [Support request] How To Place Search Box Below The Logo?

Home Forums Support How To Place Search Box Below The Logo?

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1477019
    Jaime

    Hey, GeneratePress Team!

    How can I place the search box below the logo in mobile view and front of the logo?

    Please see this screenshot, this is how I want: https://ibb.co/LtwSzRn

    Thanks for the help in advance!

    #1477034
    Leo
    Staff
    Customer Support

    Hi there,

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

    You can use the private information field.

    Let me know 🙂

    #1477046
    Jaime

    I have shared both the sites URL.

    I want to create exact same primary navigation, for both mobiles as well as the desktop view… As this site is having

    #1477115
    Leo
    Staff
    Customer Support

    Can you disable LiteSpeed cache so I can inspect the code better?

    #1477128
    Jaime

    Disabled the LiteSpeed cache.

    #1477141
    Leo
    Staff
    Customer Support

    So first you want to modify the header padding with the mobile toggle activated so the content is centered:
    https://www.screencast.com/t/e2PfqWDdZGL
    https://docs.generatepress.com/article/header-padding/

    Then we can use this CSS to reverse the order of logo and search field:

    @media (max-width: 768px) {
        .inside-header {
            display: flex;
            flex-direction: column-reverse;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #1478013
    Jaime

    I did that, change the padding in header and also applied the CSS you shared above.

    How can I place the menus https://prnt.sc/uvb2tu in one line as in the example site? And also how can I move menus only to right side, beside the cart button?

    #1478268
    David
    Staff
    Customer Support

    Hi there,

    to make those menu items all fit on one row – you would have to reduce the Typography > Primary Navigation to around 10px and the menu item width to around 5px for to fit on the smallest mobile devices.

    The problem with that is those links become difficult to click and google will flag that as a UI/UX issue.

    #1478478
    Jaime

    Okay! Got you!

    And how can I move them to the right side, only menus?

    #1478724
    Leo
    Staff
    Customer Support

    So we are going to use a toggle instead now right?

    If so can you change the mobile navigation breakpoint back to the default 768px?
    https://docs.generatepress.com/article/mobile-navigation/#initiating-the-mobile-navigation-at-a-different-width

    #1478826
    Jaime

    No, I want to move the menus on right for pc view only.

    #1478904
    Leo
    Staff
    Customer Support
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.