A user working with Shopify’s DAWN theme wants to hide collection descriptions on paginated pages (URLs containing ?page). They’re looking for guidance on modifying the code that controls the description display.
Proposed Solution:
Another user attempted to help but found accessing the current page number in Liquid code challenging. They offered a workaround involving:
Adding custom CSS/JavaScript to the main-collection-banner.liquid file
Hiding the description by default using CSS (.collection-hero__description { display: none; })
Using JavaScript to show it only on page 1
Current Status:
The helper noted this approach caused flickering issues and acknowledged better solutions might exist. The discussion remains open, with the original poster’s question not fully resolved through a clean Liquid-based method.
Summarized with AI on November 4.
AI used: claude-sonnet-4-5-20250929.
Hi, I’m using the DAWN theme.
I’d like to hide the category description on pagination subpages. If the URL contains ?page then we don’t display the description.
Could someone tell me how to modify the code responsible for the description?
{%- if section.settings.show_collection_description and collection.description != blank -%}
I thought this would be an easy fix, but it’s not! I can’t figure out how to access the current page in the Liquid code.
I have a potential solution, but there might be a better way to do it. You can just paste this at the top of your main-collection-banner.liquid file.
It’s a simple script and styling change that hides the description by default and only shows it on page 1. You could also reverse it to show the description by default and hide it on other pages, but I found that caused some flickering.