Is there a Shopify Object that tells me what page type I'm on (collection/ blog/ product page)?

Highlighted
New Member
5 0 0

I've been looking through the shopify object cheat sheet but am having no luck. Basically looking for {%- if pageType == collections -%}

 

I've got to imagine this object exists I'm just not having any luck finding it. Any help?

0 Likes
Highlighted
Shopify Partner
1467 174 278

Yep, that's the request object, page_type attribute. More info here - https://help.shopify.com/en/themes/liquid/objects/request

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes