We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to make search icon a coloured search bar

How to make search icon a coloured search bar

MollieHammond
Explorer
54 1 8

Hi all,

 

I was hoping to get some help in changing our search icon into a coloured search bar. At the moment it looks like this. I am hoping to turn it into a rounded cornered rectangle with a green background to make it stand out. Colour code: 657d67.

MollieHammond_0-1751519561923.png

 

We are using the Palo Alto theme

URL: https://www.coffee.prestigerepairs.com.au/

 

Thank you so much for any assistance. 

 

 

 

Kind regards,

Mollie Hammond
Replies 4 (4)

SEOAnt-Jeffery
Shopify Partner
288 5 22

Hi @MollieHammond

 

You can try to add below CSS at the bottom of theme.liquid and see if it is what you want.

<style>
search-popdown__toggle navlink navlink--icon {
background-color: #657d67;
border-radius: 7px;
}
</style>

It shall look like this below:

SEOAntJeffery_0-1751527758651.png

An AI-powered all-in-one SEO optimization tool that elevates website rankings, traffic through intelligent keyword analysis and website content optimization.

Official Website | SEOAnt

Bundler-Manuel
Astronaut
1195 56 141

Hi Mollie @MollieHammond  The code in the solution reply should help you in conveniently changing the search icon to a search bar, have a look at it here https://community.shopify.com/c/shopify-design/change-search-icon-to-search-bar-in-refresh-theme/m-p... 

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.

WebDeskSolution
Shopify Partner
252 55 64

Hello @MollieHammond 

 

Please follow the steps below after logging into the Shopify admin:

 

  • Go to your Shopify Admin panel.
  • Click on Online Store > Themes.

 

 

  • Find the live theme and then click Actions > Edit code.
  • Search theme.css
  • Insert the provided CSS code at the end of the file and save the changes.

 

.mobile-menu .search-popdown.mobile-menu__button 
{
    background: #657d67;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#NavStandard .menu__item summary.search-popdown__toggle.navlink 
{
    background: #657d67;
    border-radius: 20%;
}

 

Please hit Like and Mark it as a Solution if you find our reply helpful.

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Shopify Partner | Shopify Development Agency | Call: 877.536.3789


Canada: 150 King St W. STE 200, Toronto, ON M5H 1J9

 | USA: 98 Cutter Mill Rd. STE 466, Great Neck, NY 11021

PaulNewton
Shopify Partner
8031 688 1649

@MollieHammond that will require code edits to have it default to open and remove positioning classes, etc so it's no longer a popdown.

Not to mention any mobile behavior.

If you need this customization then contact me for services.
Contact info in forum signature below ⬇ ⬇ ⬇.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org