I’m trying to do some customizations with CSS but only on one page. I know I can target a section and an element individually…but how do I target a specific page?
In this particular instance, I want to customize a section on all 4 of my collection pages.
This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/theme.liquid->paste the code below before :
{% if template contains 'collection' %}
{% endif %}
Hey there @PageFly-Kate !
I appreciate you jumping in.
Is there no way to achieve this inside the CSS editor? instead of changing the liquid file? There must be a way to just add a selector to my CSS?
Thank you!!!
Because in your theme there is no specific class or ID on any page. If you edit the css for the Collection page, but inserting the code into the generic css file may affect other pages
Your solution worked great…thanks again for this. I was wondering if it’s possible to exclude a ‘media with text’ section from a collection? I’m now needing to use a ‘media with text’ section on the collection pages as a header but I’m unable to while I have this code for all sections within the collection page. Do you have any ideas on how to exclude one of the media with text sections?
Maybe some kind of
not: and then the section identifier?
Thank you SO much for any pointers