Home › Forums › CSS › [Solved] Target element by specific page URL › Reply To: [Solved] Target element by specific page URL
February 24, 2015 at 4:58 pm
#196711
mcfly85
Participant
For any other sad bastards like me who are trying to target specific elements in a Squarespace template (elements you have NOT necessarily created yourself) I believe it’s best to target specific elements with their #collection ID coming first. Each page <body> in Squarespace gets given its own #collection ID.
E.g.
<style>
#collection-54c80d1de1b051522508c579 .page-title {
color: Tomato;
}
</style>
This means you can style the page title (or whatever) in a unique way on a per-page basis. I hope this helps someone sometime…