Boost Your Collection Layout: Enlarge Images in Shopify's Enterprise Theme

Hey there, fellow store owners! Ever found yourself staring at your Shopify store, thinking, "This looks good, but what if I could just tweak that one thing?" We've all been there. The beauty of Shopify, especially with powerful themes like Enterprise, is its flexibility. But sometimes, getting that perfect pixel-perfect layout requires a little digging or a friendly nudge from the community.

Recently, I stumbled upon a fantastic discussion in the Shopify Community forums that perfectly illustrates this. Our friend Nick_S2 was grappling with a common design challenge: those collection list images in the Enterprise theme. They were a bit on the small side, especially the circular ones, and Nick wanted to enlarge them to better fill the available space. It's a small detail, but these are the kinds of adjustments that can significantly impact your store's visual appeal and user experience.

The Challenge: Small Collection Images in Enterprise Theme

Nick's original post laid out the problem clearly: how to simply increase the images in the Collection List section of the Enterprise theme. He even shared a link to his store and a screenshot, showing these neat circular collection images that, while stylish, just weren't quite making the impact he wanted. He explicitly mentioned, "Really just want to make the circles larger - to fill the space a little more."

It's a valid point. In e-commerce, visuals are everything. Larger, more prominent collection images can draw the eye, make navigation clearer, and generally enhance the browsing experience. When space isn't being utilized effectively, it can make a page feel sparse or less professional.

Community Steps Up: Two Approaches to Enlarge Images

As often happens in the community, different experts jumped in with solutions. Shadab_dev initially sought clarification, asking if Nick wanted to enlarge images or add more collections (a good question to narrow down the problem!). Once Nick confirmed it was purely about image size, the code solutions started rolling in.

Approach 1: Global CSS Adjustment (from devcoders)

The first detailed solution came from devcoders. This approach involves adding custom CSS to your theme's main stylesheet, typically main.css or base.css, which means the changes would apply globally to all collection list sections using these specific classes. Here's what they suggested:

@media screen and (min-width: 990px) {
  ul.slider__grid.grid-flow-col .card__media--circle {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
  }

  ul.slider__grid.grid-flow-col .card__media--circle .media {
    width: 100% !important;
    height: 100% !important;
    padding-top: 0 !important;
  }
}

This code targets elements with classes like slider__grid and card__media--circle, which are common for collection displays, especially circular ones. It sets their width to 100% and ensures a 1:1 aspect ratio, making them fill their container. The @media screen and (min-width: 990px) ensures these changes only apply on larger screens, which is smart for responsive design.

Approach 2: Section-Specific Custom CSS (from Moeed)

Then, Moeed chimed in with what he called a "better solution." While devcoders' code is effective, Moeed pointed out that it would make changes in all Collection List sections. His alternative offers more granular control, allowing you to apply the change to a specific section rather than globally. This is often preferred for theme customization, as it reduces the risk of unintended side effects elsewhere on your site.

Moeed's suggestion was to add this CSS directly into the Custom CSS option available within the section's settings in the theme editor:

@media screen and (min-width: 768px) {
.card__media {
    width: 180px !important;
}
.grid {
    grid-auto-columns: calc((100% - var(--column-gap) * 6) / 6) !important;
}
}

This snippet targets the .card__media element, setting a fixed width of 180px, and then adjusts the .grid layout to accommodate this change, effectively making the images larger. Notice the @media screen and (min-width: 768px), ensuring it's responsive and applies only on tablet-sized screens and up.

The best part? Nick_S2 confirmed that Moeed's solution worked perfectly for him, giving us a clear winner in this particular scenario!

How to Implement Moeed's Section-Specific Solution

If you're using the Enterprise theme and want to give your collection list images a boost, here's how you can implement Moeed's targeted solution:

  1. Access Your Theme Editor: From your Shopify admin, go to Online Store > Themes.
  2. Customize Your Theme: Find your "Enterprise" theme (or whichever theme you're using that has the Collection List section you want to modify) and click on the "Customize" button.
  3. Navigate to the Collection List Section: In the theme editor sidebar, find and click on the specific "Collection List" section you wish to modify. This is where the magic of section-specific CSS comes in handy!
  4. Locate the Custom CSS Option: Scroll down the settings for that particular Collection List section. You should find an input field or area labeled "Custom CSS" or "Custom Liquid & CSS" (the exact label might vary slightly depending on your theme version, but it's usually at the bottom).
  5. Paste the CSS: Copy the following code snippet and paste it into the "Custom CSS" box:
    @media screen and (min-width: 768px) {
    .card__media {
        width: 180px !important;
    }
    .grid {
        grid-auto-columns: calc((100% - var(--column-gap) * 6) / 6) !important;
    }
    }
    
  6. Save Your Changes: Don't forget to click the "Save" button in the top right corner of the theme editor.

Once saved, refresh your store's front end, and you should see your collection images enlarged, filling the space much better! Remember, the 180px width is a starting point. Feel free to experiment with that value to find what looks best for your specific layout and the number of columns you have in your collection list.

A Few Thoughts on Customization

This little win highlights a couple of key things:

  • The Power of Community: The Shopify Community forums are an invaluable resource. Don't hesitate to search for solutions or ask questions. Chances are, someone else has faced a similar challenge.
  • Targeted vs. Global Changes: Moeed's "better solution" emphasizes the importance of making targeted changes where possible. While editing main.css is fine for global styles, using section-specific CSS (when available) gives you more control and minimizes the risk of breaking other parts of your site.
  • Always Test: Whenever you're adding custom code, always, always test your changes on a duplicate theme first, and check how they look across different devices and screen sizes. The @media screen queries are crucial for responsiveness!

So, if you've been looking to give your collection list images a bit more presence in your Enterprise theme, give Moeed's solution a try. It's a straightforward tweak that can make a noticeable difference in how your products are presented. Happy customizing!

Share:

Use cases

Explore use cases

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

Explore use cases