Community Fix: Expanding Narrow Blog Content on Shopify's Horizon Theme

Hey there, fellow store owners! Moeed here, your friendly Shopify migration expert, diving into another gem from the community forums. You know that feeling when you've poured your heart into a blog post – amazing images, compelling copy – only to see it squeezed into a narrow column on your store? It's a common frustration, and it was exactly what our friend tkev69150 ran into with their Shopify Horizon theme.

Tkev69150 kicked off a discussion asking for help because their blog content on the Horizon theme was stubbornly stuck at a mere 980px wide. They'd tried everything – tweaking block and section code, even consulting AI tools like Gemini and Claude – but nothing seemed to budge that frustratingly narrow layout. Sound familiar?

The Mystery of the Narrow Blog: Why It Happens

It turns out, tkev69150 wasn't alone, and the community quickly jumped in to diagnose the issue. Emilyjhonsan98 offered a crucial insight: many Shopify themes, including Horizon, often wrap their blog post articles (and other content) in a strict global layout container. This means that even if you try to make the internal blog sections wider, a parent wrapper element is overriding your changes, keeping everything locked to a default, narrower width.

This "parent wrapper" concept is key. It's like trying to stretch a rug that's already defined by the size of the room – you can pull all you want, but it won't go beyond the walls. The solution, then, is to tell those "walls" (the parent container) to expand.

Community-Tested Solutions for Full-Width Blogs

Thankfully, our brilliant community members quickly provided actionable CSS fixes. There were two main approaches that emerged, both effectively using the !important declaration to ensure our custom styles override the theme's default settings. Let's break them down:

Option 1: Targeting Specific Blog Content (Moeed's Method)

This method, shared by a helpful community member named Moeed, focuses specifically on the blog post content itself. It's a great choice if you want your blog articles to go full-width, but prefer other parts of your site to maintain their default layout.

Here's how to implement it:

  1. From your Shopify Admin, navigate to Online Store, then Themes.
  2. Find your current theme (Horizon, in this case), click the ⋯ three dots button, and select Edit code.
  3. In the file explorer on the left, locate and open the theme.liquid file. This is your theme's main layout file.
  4. Scroll all the way down to the bottom of the theme.liquid file. Just above the closing tag, paste the following code:
  5. Click Save.

Moeed even shared a visual of the result, which I've included here so you can see the magic happen:

image

Tkev69150 confirmed this solution worked for them, which is always great to hear!

Option 2: Broadening the Global Page-Width (Wsp's Method)

Another fantastic suggestion came from Wsp, who proposed targeting a more general class: .page-width. This class is often used across various sections of a Shopify theme to control the maximum width of content. If you want most of your site's content to break free from the 980px limit, this might be the more comprehensive solution for you.

Here's how to implement this broader change:

  1. Go to your Shopify Admin, then Online StoreThemes.
  2. Click the ⋯ three dots next to your theme, and choose Edit code.
  3. Open the Assets folder. Look for base.css. If you don't find base.css, then open theme.css (or sometimes theme.scss.liquid or a similar main CSS file).
  4. Paste the following code at the very bottom of the file:
    .page-width {
    max-width: 100% !important;
    }
  5. Click Save.

This modification aims to remove the 980px width limit for any element using the .page-width class, making your blog content (and potentially other pages) truly full-width.

A Quick Note on !important

You'll notice both solutions use !important. This CSS declaration forces a style to take precedence over any other conflicting styles, even those with higher specificity. While powerful and often necessary for overrides like this, it's generally good practice to use it sparingly, as it can make future CSS debugging a little trickier. But for quick, effective theme modifications like this, it's often the simplest path to success!

So, there you have it – two solid, community-vetted ways to get those blog posts stretching across your screen, giving your content the space it deserves. Whether you opt for a targeted approach or a broader site-wide change, the key is understanding how those layout containers work. As always, make sure to test these changes on a duplicate theme first, just to be safe!

Happy blogging, and here's to beautiful, full-width content!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases