Refresh Theme - Make A Search Bar Instead Of An Icon On Desktop Version But Leave The Icon On Mobile

Topic summary

A Shopify store owner wants to customize their Refresh theme’s search functionality:

Goal:

  • Display an open search bar in the header on desktop
  • Keep only the search icon on mobile devices

Current Status:

  • A solution was provided involving code replacement in the header.liquid file (line 545)
  • The store owner attempted the implementation but encountered issues
  • Screenshots show the code changes made, but the result didn’t work as expected

Remaining Issue:

  • The implementation appears unsuccessful based on the frontend result
  • The helper needs store access to troubleshoot and verify the changes properly
  • The discussion remains unresolved, awaiting further debugging
Summarized with AI on November 22. AI used: claude-sonnet-4-5-20250929.

Hello. I’d like to make a customization for my Shopify store.

I wan’t to display already open search bar in header on desktop version, but on mobile version I wan’t to leave the icon only as it is.

Store link: https://ontech-lt.myshopify.com

Password: 40002

@Ignelis
Add below code in header.liquid file


replace below code(replace below code with the above one)


Okay. I think I did something wrong. I replaced this code in header.liquid - line 545

to this:

And unfortunately this is what i get:

@Ignelis But in front -end it doesn’t visible perfectly for that i need access of your store .