Unlock Wider Content: Customizing Page Width in Shopify's Horizon Theme
Hey everyone,
As a Shopify expert who spends a lot of time digging through the community forums, I often come across discussions that really hit home for store owners. One such thread recently caught my eye, and it’s about a common frustration many of you might share: dealing with page content that feels just a little too narrow in your theme, especially when you want your text and images to breathe a bit more.
The discussion centered around the Horizon theme, a sleek and modern option, but like many themes, it sometimes defaults to a more constrained content width. A store owner, Asa from 3rdDay, was looking to expand the width of their page title and content, finding no direct option in the theme customizer. Sound familiar? It’s a classic scenario where you love your theme’s overall look but need to tweak a specific layout element.
Cracking the Code: Expanding Content Width in Horizon
Thankfully, the Shopify community is a treasure trove of helpful folks! Moeed jumped in with a fantastic, straightforward solution that involves a little bit of custom code. Don't worry, it's not as scary as it sounds, and I'll walk you through it. This approach allows you to inject some CSS to override the default styling and give your content the space it deserves.
Step-by-Step Guide to Adjusting Your Page Width
Here’s how Moeed suggested tackling this, with a few extra pointers from my end:
- Go to your Shopify Admin.
- Navigate to Online Store, then Themes.
- Find your current theme (Horizon, in this case) and click Actions > Edit Code.
- In the file explorer on the left, find the
theme.liquidfile. This is your main layout file, kind of like the skeleton of your entire store. - Scroll down to the very bottom of the
theme.liquidfile. You’re looking for the closing
