How to Neatly Hide Collection Titles on Shopify (Without Losing Clickability)
Hey there, fellow store owners! Ever found yourself staring at your Shopify store, thinking, "This looks great, but I wish I could just hide that text under my collection images?" You're definitely not alone. It's a super common request, and it came up recently in the Shopify community forums in a thread started by a user named Lisa, who was trying to do just that – remove the text under her collection list images while keeping them perfectly clickable.
Lisa, like many of us, had tried a few code snippets she found online, but ran into a classic problem: either the text didn't disappear, or it did, but then her customers couldn't click on the collection images anymore! Frustrating, right? Losing that clickability is a big no-go for user experience. Luckily, the community jumped in with some fantastic advice, and as experts in Shopify migrations and store optimization at Shopping Cart Mover, we're here to break down the best solutions for you.
The Common Dilemma: Aesthetics vs. Functionality
The default Shopify themes are designed for broad appeal, often displaying collection titles directly beneath their respective images. While functional, this might not always align with every brand's aesthetic vision, especially for those aiming for a minimalist, image-focused layout. The core of Lisa's problem, and what many store owners face, is that simply using display: none; on the text element can sometimes remove the entire clickable area if the text is part of the link's structure. Or, sometimes, the CSS class names are different depending on your theme, making generic solutions hit-or-miss.
The goal is to achieve a clean, image-centric display without sacrificing navigation. Your customers should still be able to effortlessly click on a collection image and be taken directly to that collection's page. This balance is crucial for a smooth user experience and maximizing conversions.
The Expert Solutions: Achieving a Clean Look Safely
Fortunately, there are several robust ways to hide collection titles while preserving full clickability. The best method often depends on your specific Shopify theme (e.g., Dawn, Sense, Refresh, or an older theme) and your comfort level with code.
Method 1: The Safest & Recommended Approach (Online Store 2.0 Themes)
For most modern Shopify themes (Online Store 2.0 themes), the easiest and safest way to hide collection titles is by using the built-in Custom CSS feature within the theme customizer. This method doesn't require editing core theme files, making it less prone to errors and easier to manage during theme updates.
Step-by-Step Guide:
- Access Your Shopify Admin: Go to your Shopify admin dashboard.
- Navigate to Themes: Click on Online Store > Themes.
- Customize Your Theme: Find your active theme and click the Customize button.
- Locate the Collection List Section: In the theme customizer, navigate to the page where your Collection List is displayed (e.g., your homepage).
- Select the Section: In the left-hand sidebar, click directly on the Collection list section.
- Add Custom CSS: Scroll down the right-hand settings panel until you find the Custom CSS box.
- Paste the Code: Insert the following CSS snippet into the box:
.collection-card__title, .card__heading, .collection-list-title { display: none !important; } - Save Your Changes: Click Save at the top right corner.
Why this code works: This snippet targets common CSS class names used by various Shopify themes for collection titles. The !important declaration ensures that your custom style overrides any default styles. By setting display: none, the text is completely removed from the visual layout without affecting the underlying clickable image or link.
Method 2: Advanced CSS for Specific Scenarios or Older Themes
If Method 1 doesn't yield the desired results, or if you're using an older theme that lacks the Custom CSS feature in the section settings, you might need to delve directly into your theme's CSS files. This requires a bit more caution.
Option A: Editing theme.css or global.css
- Backup Your Theme: Before making any code changes, always duplicate your theme (Actions > Duplicate) to create a backup.
- Access Theme Code: Go to Online Store > Themes, then click Actions > Edit code for your active theme.
- Find CSS File: In the Assets folder, open
theme.css,global.css, or a similar stylesheet (e.g.,base.cssorsections-collection-list.cssdepending on your theme). - Paste the Code: Scroll to the very bottom of the file and paste one of these snippets:
- For general hiding:
.collection-list .card__heading { display: none !important; } - An alternative for preserving clickability if the above fails (uses opacity to hide, keeping element in flow):
.collection-list__item .card__content { opacity: 0; position: absolute; align-items: center; height: 100%; }
- For general hiding:
- Save: Click Save.
Understanding the alternative code: The opacity: 0; method makes the text invisible but keeps the element in its original position, ensuring the clickable area remains intact. The additional properties like position: absolute; and height: 100%; might be necessary in some themes to ensure the entire card area is covered by the hidden content, thereby making the image fully clickable.
Why Theme Matters: Understanding CSS Selectors
You might notice different CSS class names (.collection-card__title, .card__heading, .collection-list-title) being used in the solutions. This is because Shopify themes, even those built on Online Store 2.0, can use varying class structures for their elements. If a code snippet doesn't work, it's often because the CSS selector isn't matching the specific class name used by your theme.
Pro Tip: Use Your Browser's Developer Tools! Right-click on the text you want to hide on your live store and select "Inspect" (or "Inspect Element"). This will open your browser's developer tools, showing you the HTML structure and the exact CSS classes applied to that text element. You can then adjust the CSS selectors in the provided code to match your theme's specific classes.
Best Practices for Shopify Customizations
- Always Backup: Before making any code changes, always duplicate your theme. This is your safety net.
- Test Thoroughly: After applying any code, check your store on different devices and browsers to ensure everything works as expected, especially clickability.
- Clear Cache: Sometimes, changes might not appear immediately due to browser or Shopify caching. Clear your browser cache or try viewing in incognito mode.
- Consider Professional Help: If you're unsure or encounter complex issues, don't hesitate to reach out to a Shopify expert or your theme developer.
Ready to Elevate Your Shopify Store?
A clean, intuitive user interface is paramount for a successful e-commerce store. By tidying up your collection pages, you're not just improving aesthetics; you're enhancing the customer journey and making your products shine. These small customizations can significantly impact how your brand is perceived and how easily customers navigate your store.
If you're looking to start your own e-commerce journey or upgrade your existing platform to Shopify, you can get started with Shopify here. Its flexibility and robust features make it an ideal choice for businesses of all sizes.
Conclusion
Hiding collection titles on Shopify without breaking links is a common design refinement that can dramatically improve your store's visual appeal. By following the methods outlined above, you can achieve a sleek, image-focused layout that keeps your customers engaged and ensures seamless navigation. Remember to always back up your theme and test your changes. At Shopping Cart Mover, we're dedicated to helping merchants optimize their online presence, whether it's through detailed customizations like these or comprehensive platform migrations. A well-designed store is a powerful tool for success!