SRocks Posted January 4, 2021 Share Posted January 4, 2021 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
Beyondspace Posted January 5, 2021 Share Posted January 5, 2021 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.