A Shopify store owner using the Craft theme wants to replace the search icon in the upper left corner with a visible search box instead of the modal popup.
Initial Problem:
User provided screenshots showing desired layout
Working on a sandbox/development version of the site
Familiar with code editing but needed guidance on which files to modify
Solution Process:
Primary files involved: header.liquid, header-search.liquid, and base.css
Helper provided modified code for header-search.liquid that removed conditional statements to display the search box directly
Initial implementation created duplicate search boxes (one left, one right)
Final Resolution:
Added CSS to base.css to hide the right-side search modal
Applied additional CSS to center the search box properly using grid-area positioning
Fixed a secondary issue where only the “M” in “Menu” was clickable by adding left margin
Outcome:
Successfully implemented with all issues resolved. The search box now displays as intended in the header’s left area with proper alignment and functionality.
Summarized with AI on November 3.
AI used: claude-sonnet-4-5-20250929.
@lakeside-molds - check if you have header.liquid or header-group.liquid file, you will need to copy search modal code in the place where you want search to appear. I recommend to create copy of the active theme and make changes to it. Once it works then you can make it live
I went back and replaced the header-search.liquid file with only your code ( in other words I removed the code that was above and below it ) and that seemed to work. The only glitch is that there are ( 2 ) search boxes now. If we could get rid of the one on the right side, and then we should be good to go. ( see screen shot )
Also I’m wondering if the width of the box on the left was just a little narrower it may line up in the center vertically?
@lakeside-molds - to hide search on right, please add this css to the very end of your base.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → base.css
I just had one last item… Not sure if this was something that just happened with these recent code changes or if it was like this before… but I just noticed that in order to click on the word “menu” in the upper left hand corner that the only letter that has the clickable link is the letter “M” on the word menu… so in other words you have to have the pointer right on the perfect spot to get the menu to activate.