Site logo

[Support request] Add Search Hero Box under Header

Home Forums Support [Support request] Add Search Hero Box under Header

Home Forums Support Add Search Hero Box under Header

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #1574258
    David
    Staff
    Customer Support

    I am still seeing empty grid columns being used. Really need to remove the grid block and just add the content to the container block. I need to change so i can provide CSS to force the width of the Search field, which won’t work properly with those columns around it.

    #1574273
    ahmad

    Alright Removed it

    #1574472
    David
    Staff
    Customer Support

    Add this CSS:

    .gb-inside-container form.search-form label {
        flex: 1;
        max-width: 600px;
    }
    .gb-inside-container form.search-form input[type="search"] {
        width: 100%;
    }

    Adjust the max-width: 600px; to suit – or you can remove that property for it to fill the container.

    #1574567
    ahmad

    Awesome that worked!

    though on mobile the search button is next to the input field which is annoying
    is there a way to make the button under the input field only on mobile?

    #1574581
    David
    Staff
    Customer Support

    Try this CSS:

    @media(max-width: 500px) {
        .gb-inside-container form.search-form {
            flex-wrap: wrap;
        }
        .gb-inside-container form.search-form label,
        .search-form input[type=submit] {
            flex: 1 0 100%;
            margin-top: 5px;      
        }
        .gb-inside-container form.search-form input[type="search"] {
            text-align: center;
        }
        
    }
    #1574582
    ahmad

    kinda worked but can we add a bit of space in between the input and the button
    now it’s just attached to it?

    best

    #1574598
    David
    Staff
    Customer Support

    edited the CSS here to include a little space

Viewing 7 posts - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.