How to alter font size in mobile search bar?

Topic summary

A Shopify store owner using the Athens theme encountered an issue where the mobile search bar text “Search for Products” was being cut off due to font size.

Solution Provided:

  • Add custom CSS code to the theme.liquid file (above the </body> tag)
  • The code reduces the placeholder font size to 12px specifically for mobile devices

Outcome:
The solution successfully resolved the display issue. The fix uses a media query targeting screens up to 749px width to apply the smaller font size only on mobile devices.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

The font in my mobile search bar cuts off.

Is there a way to change this font size downwards, or even just change it to “Search” instead of “Search for Products”? You can see in the attached screenshot below…we are using the Athens theme.

Thanks for any help!

https://northernlites.com/

Hey @Wesdunn44

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

2 Likes

Wow - you’re the best! Thank you!!

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.