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.