Jump to content

7.1 Portfolio Pages Help: override header code so it doesn't apply to individual project pages

Recommended Posts

I am using header code injection to create a carousel on my portfolio page to showoff the projects we present. However, the project pages read the same header code as the portfolio page (there isn't a separate header code injection for each project page) and therefore also create a carousel which isn't what I want. I was wondering if anyone knows how to override the header code for individual project pages. My other workaround is understanding the code behind project pages and how they are nested within portfolio pages so I can target each project page, so if anyone has info on that that would be helpful too.

Link to comment
4 hours ago, SRocks said:

I am using header code injection to create a carousel on my portfolio page to showoff the projects we present. However, the project pages read the same header code as the portfolio page (there isn't a separate header code injection for each project page) and therefore also create a carousel which isn't what I want. I was wondering if anyone knows how to override the header code for individual project pages. My other workaround is understanding the code behind project pages and how they are nested within portfolio pages so I can target each project page, so if anyone has info on that that would be helpful too.

each collection page has common body class name, we can use it to identity the current page type, kindly share your site url and the custom code you are using to help

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.