A user wants to reduce the font size of collection link text in the Shopify Horizon theme. They identified the relevant code in _collection-link.liquid using CSS custom properties (--font-size--4xl and --font-size--6xl) with a clamp() function for responsive sizing, but hesitated to modify it due to concerns about breaking responsive behavior across different screen sizes.
Proposed Solution:
Another user provided a CSS override to add to theme.liquid before the closing </body> tag:
Status:
The solution was offered with a visual result screenshot, but no confirmation from the original poster about whether it resolved their issue. A third user noted the store currently has no designs, suggesting the implementation may still be in early stages.
Summarized with AI on October 25.
AI used: claude-sonnet-4-5-20250929.
I imagine you’ve already sorted this out. But if you’re not looking to update the actual theme file, or you die a little inside every time you see !important I might have an alternative solution.
Adjusting this element is a bit tough since the component doesn’t include a method for adjusting the text size built in. I was a little sad to see the text not have options to change things and the font-size being hard coded into the component. Ignoring the fact I will be customizing this thing myself, I started with simply adjusting things in the Custom CSS panel so my client can verify it’s what they want. As you’ll see, the three values for clamp are giving you a minimum, preferred, and maximum. Adjust as needed.
For example, I brought down all three to get what I needed. But perhaps you just want the max to not quite get so big. Or you want the preferred to be something totally different. I’ll leave that up to you.