Site logo

Archived topic

Change the search bar style in Split Template

7 replies · Started by Christine on July 17, 2019

Viewing posts 1–8 of 8

Hi,

I am looking for a different layout for Search bar on my website: https://staging.gartersandco.com.au/

The current layout is like search bar open up above menu.

Is there was to change that ?

Hi there,

So how would you like to style it?

Hi there,

Is something like this along the right lines?:

.navigation-search.nav-search-active {
    left: auto;
    width: 300px;
    top: 100%;
    padding: 20px;
    background: #fff;
}

.navigation-search.nav-search-active input {
    border: 1px solid #ddd;
    border-radius: 5px;
    height: auto;
}

.navigation-search {
    top: 150%;
    transition: opacity 300ms ease-in-out, top 300ms ease-in-out;
    left: auto;
}

Thank you very much Tom. It is right. Will you please add a search icon to it like http://prntscr.com/ogwq6l?

Looking forward!

Thanks

Hi there,

First, add this PHP: https://gist.github.com/generatepress/565683b10cca65050d7fb3a006efbc29

Then, add this CSS:

.navigation-search.nav-search-active .search-button {
    position: absolute;
    right: 30px;
    top: calc(50% - 15px);
    height: 30px;
    display: block;
    content: "\f002";
    font-family: GeneratePress;
    opacity: .5;
    width: auto;
    background: transparent;
    color: #000;
    border: 0;
    padding-left: 5px;
    padding-right: 5px;
}

Hey Tom. You are the Best! It worked!!!!
Thank you for your extra ordinary Support.

Regards

You're welcome :)

This archived topic is closed to new replies.