[Resolved] Place search bar above the header image / banner

Home Forums Support [Resolved] Place search bar above the header image / banner

Home Forums Support Place search bar above the header image / banner

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #178304
    Sally

    We would like to place a search bar above the header image / banner, similar to the search function in these forums, with a search field and a search button. Can you suggest how to do this in Generate Press so that the search is the width of the site content container?

    #178417
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    First, place the “Search” widget into the “Header” widget area in “Appearance > Widgets”.

    Then, add this CSS:

    .header-widget {
        float: none;
        max-width: 100%;
    }
    
    .header-widget .widget .search-field {
        width: 85%;
    }
    
    .header-widget .widget_search .search-submit {
        display: inline-block;
        width: 10%;
    }

    Let me know how it works out ๐Ÿ™‚

    #179044
    Sally

    Thanks! With a minor CSS adjustment, this works really well.

    #179068
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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