Ruth Posted July 13 Share Posted July 13 Hi - I've created a section of the school's website (Post 16) to look different to the rest of the site / different logo etc... I've added this code to each of the pages in the post 16 section: <style>.has-logo-image .Header-branding img{content:url(https://static1.squarespace.com/static/61093bde32e48d7f4093051d/t/64afdbaa9871ca44d701a46c/1689246635441/POST16+.png); background-size: contain; background-repeat: no-repeat; background-position: center}</style> <style> .Main {background-color: rgba(161,192,212,.5) !important; } </style> <style>h1 {color: #314f66;}</style> <style>.Header-inner--bottom {background-color: #314f66;} !important; </style> <style>.Header-inner--top{background-color: #929292;} !important; </style> However when I navigate around the site, the new format is following to area where it shouldn't be. Works great when checking through the backend , but when viewing as a user it's not working unless you keep refreshing the page. Can anyone help please? Lower / main school should be red and gold, post 16 pages, blue and grey Thank you in advance Link to comment
Ruth Posted July 13 Author Share Posted July 13 Sorry forgot address: https://www.stonehillschool.org Ziggy 1 Link to comment
Ziggy Posted July 13 Share Posted July 13 I assume you are adding this to the individual pages header code injection? I don't actually see it working anywhere currently. I noticed a couple of errors in your code towards the end, so I've cleaned that up. <style> .has-logo-image .Header-branding img { content:url(https://static1.squarespace.com/static/61093bde32e48d7f4093051d/t/64afdbaa9871ca44d701a46c/1689246635441/POST16+.png); background-size: contain; background-repeat: no-repeat; background-position: center;} </style> <style> .Main { background-color: rgba(161,192,212,.5) !important; } </style> <style> h1 {color: #314f66;} </style> <style>.Header-inner--bottom {background-color: #314f66 !important;} </style> <style>.Header-inner--top{background-color: #929292 !important;}</style> Ruth 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Ruth Posted July 13 Author Share Posted July 13 1 hour ago, Ziggy said: I assume you are adding this to the individual pages header code injection? I don't actually see it working anywhere currently. I noticed a couple of errors in your code towards the end, so I've cleaned that up. <style> .has-logo-image .Header-branding img { content:url(https://static1.squarespace.com/static/61093bde32e48d7f4093051d/t/64afdbaa9871ca44d701a46c/1689246635441/POST16+.png); background-size: contain; background-repeat: no-repeat; background-position: center;} </style> <style> .Main { background-color: rgba(161,192,212,.5) !important; } </style> <style> h1 {color: #314f66;} </style> <style>.Header-inner--bottom {background-color: #314f66 !important;} </style> <style>.Header-inner--top{background-color: #929292 !important;}</style> Thanks, Ziggy - I've updated the code - much appreciated but it's still not working properly. If you go to the Post 16 tab, and refresh the page it will turn blue. However if you navigate away to a different part of the website, the blue will follow you unless you refresh the browser again. Yes, I've added the code to Page >settings > Advanced for each of the pages in the Post 16 section. I'm not really sure what else to do - all advice gratefully received, Cheers Ruth Link to comment
Solution Ruth Posted July 14 Author Solution Share Posted July 14 Just an update get this to work, rather than use Page > Settings > Advanced to add the code I had to add the code on to the pages in a code block. Ziggy 1 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