Shopify Themes

Shopify Horizon Theme: Unlocking Perfect Product Thumbnails with a Simple CSS Fix

Hey everyone! Your friendly Shopify expert here at Shopping Cart Mover, diving into another gem from the community forums. You know, one of the best things about the Shopify ecosystem is how we all help each other out. Recently, I stumbled upon a thread that perfectly illustrates this spirit, tackling a pesky visual glitch in the popular Horizon theme. If you've been scratching your head over product page thumbnails looking a bit... off, you're definitely not alone. Let's talk about enssle's dilemma and how tim_tairli swooped in with a brilliant fix that highlights the power of understanding basic CSS.

Before and after comparison of Shopify Horizon theme product thumbnails
Before and after comparison of Shopify Horizon theme product thumbnails

The Mystery of the Mismatched Thumbnails in Horizon Theme

Our fellow store owner, enssle, was wrestling with their product page thumbnails in the Horizon theme. Despite meticulously preparing images, checking settings, and even trying some CSS tweaks, the thumbnails just weren't behaving. They weren't covering the designated space, and their proportions were all wrong, making the product page look less than polished. enssle specifically wanted to display thumbnails next to the main product carousel, and this visual hiccup was a real roadblock to a professional-looking storefront.

Imagine a customer browsing your products. Crisp, clear, and perfectly aligned images build trust and enhance the shopping experience. Distorted or improperly displayed thumbnails, however, can detract from your brand's professionalism, potentially leading to abandoned carts. This seemingly small visual bug can have a significant impact on your conversion rates and overall brand perception.

When Global Styles Get a Little Too Enthusiastic

This is where the community magic happens. When enssle shared a preview link to their store, tim_tairli quickly jumped in to diagnose the issue. And boy, was it a classic case of CSS specificity gone wild!

What tim_tairli uncovered was pretty insightful. It turns out that some global button styling, likely added either directly in your Theme Settings' Custom CSS or perhaps by a developer in layouts/theme.liquid, was a little too enthusiastic in its application. This global styling was designed to apply padding to various button elements across the site to ensure consistent sizing and spacing.

Take a look at the core of the problem, identified by tim_tairli:

/* GLOBAL BUTTON STYLING — HORIZON THEME */ 
/* Shared button base */
.button,
button.button,
a.button,
.shopify-payment-button__button,
.product-form__submit {
  font-family: var(--font-body-family);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  min-height: 40px;
  padding: 0 28px;             /* <-- offending line */
  border-radius: 0px;
  text-transform: none;
}

The crucial line here is padding: 0 28px;. Because the selectors like .button and button.button are quite broad, they were unintentionally applying this padding to elements that are technically buttons but serve a different visual purpose – specifically, the product page carousel thumbnails (which are often implemented as

Share:

Use cases

Explore use cases

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

Explore use cases