Remove Redundant Collection Titles in Your Shopify Store
Published on Jul 1, 2024
Are you looking to streamline your Shopify store’s collection pages by removing redundant titles? You’re not alone. Many store owners find themselves in this situation, especially after adding custom banners to their collection pages. In this guide, we’ll walk you through the process of removing collection titles in Shopify, ensuring your store looks clean and professional.
Understanding the Need for Removing Collection Titles
Why Remove Collection Titles?
Collection titles are a default feature in many Shopify themes. While they serve a purpose in organizing your store, there are scenarios where they might become redundant or interfere with your design vision.
Common Scenarios
- Custom Banners: If you’ve added a banner to your collection page that already includes the collection name, the default title can be redundant.
- Minimalist Design: Some store owners prefer a cleaner look without text overlays on collection images.
- Unique Layouts: Your store might have a specific layout where the default title placement doesn’t fit well.
The Solution: CSS Customization
The Most Effective Method
The most widely accepted and effective method to remove collection titles is by adding custom CSS to your Shopify theme. This approach doesn’t require extensive coding knowledge and can be implemented quickly.
Step-by-Step Guide
Access Theme Files:
- Go to your Shopify admin panel
- Navigate to “Online Store” > “Themes”
- Click “Actions” > “Edit code” on your current theme
Locate the Correct File:
- In the Assets folder, find the file named
theme.scss.liquid
- If you can’t find this exact file, look for
theme.css.liquid
or a similar CSS file
- In the Assets folder, find the file named
Add the CSS Code:
Scroll to the bottom of the file
Add the following CSS code:
#shopify-section-collection-template h1.collection-hero__title.page-width { display: none; }
Save and Test:
- Save the changes
- View your collection pages to ensure the titles are hidden
Troubleshooting Common Issues
Title Still Visible?
If the title is still visible after adding the CSS, your theme might use a different class structure. In this case, try these alternatives:
Alternative CSS 1:
header.section-header.text-center h1 { display: none; }
Alternative CSS 2:
#shopify-section-collection-template .section-header h1 { display: none; }
Removing White Space
Sometimes, hiding the title leaves unwanted white space. To address this:
- Inspect the Page: Use your browser’s developer tools to identify the container element
- Adjust Padding/Margin: Add CSS to reduce or remove padding/margin of the container
Advanced Customization
Selective Removal
Want to remove titles from specific collections only? Use more targeted CSS selectors:
.collection-specific-class h1.collection-title {
display: none;
}
Mobile Considerations
Ensure your changes look good on mobile devices. You might need to add media queries:
@media screen and (max-width: 768px) {
/* Your mobile-specific CSS here */
}
Best Practices and Considerations
Maintain Accessibility
While removing visual titles, ensure your site remains accessible:
- Use descriptive alt text for collection images
- Consider adding hidden text for screen readers
SEO Impact
Remember that collection titles can be important for SEO. If removing them visually:
- Ensure the collection title is still in the HTML (just hidden with CSS)
- Use H1 tags elsewhere on the page to maintain proper heading structure
Regular Theme Updates
Keep in mind that theme updates might overwrite your custom CSS. Always:
- Backup your customizations
- Test your site after any theme updates
Conclusion
Removing collection titles in Shopify is a simple yet effective way to customize your store’s appearance. By following this guide, you can achieve a cleaner, more professional look that aligns with your brand’s aesthetic. Remember to test your changes across different devices and keep your customizations backed up. With these tips, you’ll be well on your way to creating a unique and visually appealing Shopify store.
For more advanced Shopify customizations and theme development, visit Shopify’s official documentation.
Take Our Quick Quiz:
Which primary product image do you think has the highest conversion rate?