miserytakeme Posted March 8 Share Posted March 8 (edited) Hi all, I'm looking to add some header code to each sub page or "project page" of a portfolio page using the code header injection or "Advanced" section in page settings; but they are missing in the sub "project" pages settings. I'll attach screenshots for clarification. How can I go about working around this? Can I add a code block at the top of each page and hide it? Will this limit what I am able to achieve? It's worth noting that I'm looking to use HTML as well as CSS and some scripts in these pages, and they will need to be treated individually from other sub "project" pages in the portfolio page. It is a work in progress, but here is the page I am using if it is relevant: https://www.miserytakeme.design/portfolio If there are any limitations or workarounds you know of, I'd love to hear your insight - I'm still quite new to the coding side of things Thank you! Edited March 8 by miserytakeme Added website link Link to comment
Ziggy Posted March 8 Share Posted March 8 You're correct, there is no header code injection available for the individual project pages. You may be able to achieve what you need with a code block on the project page. What are you wanting to do? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
miserytakeme Posted March 8 Author Share Posted March 8 Hey @Ziggy, thank you for the speedy response! Mainly just hiding certain sections depending on screen size - I've got the code working on existing regular pages, just need to replicate them in the project pages I'm also experimenting with replacing a photo with a video in a photo strip gallery on the first project in my portfolio. I managed to do it with the portfolio projects thumbnails, now I'm just trying to replicate this to an image Beyondspace 1 Link to comment
Ziggy Posted March 8 Share Posted March 8 You should be able to do that with Custom CSS using the project page "item ID", or by adding the code to the page in a code block. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
dfesenmyer Posted July 11 Share Posted July 11 Hello - i'm trying to get a page refresh to happen on a portfolio entry? i would typically add this to a header ? How can I add this to a portfolio entry? please help? <script> window.onload = function() { // similar behavior as an HTTP redirect window.location.replace("new location"); }</script> Link to comment
tuanphan Posted July 15 Share Posted July 15 On 7/12/2024 at 1:44 AM, dfesenmyer said: Hello - i'm trying to get a page refresh to happen on a portfolio entry? i would typically add this to a header ? How can I add this to a portfolio entry? please help? <script> window.onload = function() { // similar behavior as an HTTP redirect window.location.replace("new location"); }</script> You can edit portfolio item > Add a Code Block > Paste your code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment