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
  • Replies 1
  • Views 636
  • Created
  • Last Reply
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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.