betyonfire Posted April 5, 2022 Share Posted April 5, 2022 (edited) Site URL: https://wilsonmuseum.squarespace.com/ I'd like to add a section above the header with a background color and repeating image. I've found some tutorials about adding a second navigation bar but this seems a little (or so I think) simpler/more basic. Possible? The site password is: backflips! Edited April 5, 2022 by betyonfire Forgot site password. Link to comment
Beyondspace Posted April 10, 2022 Share Posted April 10, 2022 On 4/6/2022 at 2:20 AM, betyonfire said: Site URL: https://wilsonmuseum.squarespace.com/ I'd like to add a section above the header with a background color and repeating image. I've found some tutorials about adding a second navigation bar but this seems a little (or so I think) simpler/more basic. Possible? The site password is: backflips! Try adding to Home > Design > Custom Css #header:after { content:''; display:block; width: 100%; height: 10px; position: relative; background-image: radial-gradient(#212121 20%, #FDE569 20%); background-position: 0 0; background-size: 10px 10px; order: 1; } #header .header-announcement-bar-wrapper { order: 2 } #header { display: flex; flex-direction: column; } Let me know how it works on your site BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Beyondspace Posted April 10, 2022 Share Posted April 10, 2022 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
betyonfire Posted April 14, 2022 Author Share Posted April 14, 2022 That didn't seem to work. It would appear for a quick second as the page loads, then it disappears. If you have any other ideas, I'd love to hear them. Link to comment
tuanphan Posted April 18, 2022 Share Posted April 18, 2022 On 4/15/2022 at 3:52 AM, betyonfire said: That didn't seem to work. It would appear for a quick second as the page loads, then it disappears. If you have any other ideas, I'd love to hear them. Try this new code header#header:after { content:''; display:block; width: 100%; height: 10px; position: relative; background-image: radial-gradient(#212121 20%, #FDE569 20%); background-position: 0 0; background-size: 10px 10px; order: 1; } #header .header-announcement-bar-wrapper { order: 2 } #header { display: flex; flex-direction: column; } If it still doesn't work, edit your Site Footer > Add a Code Block under email > Paste this code <style> header#header:after { content:''; display:block; width: 100%; height: 10px; position: relative; background-image: radial-gradient(#212121 20%, #FDE569 20%); background-position: 0 0; background-size: 10px 10px; order: 1; } #header .header-announcement-bar-wrapper { order: 2 } #header { display: flex; flex-direction: column; } </style> 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
betyonfire Posted April 28, 2022 Author Share Posted April 28, 2022 Yes! [insert fist pump] That worked! It doesn't appear within the editor or when previewing within the editor, but it does work when viewing the preview in a not-logged-in browser. THANK YOU @tuanphan!! tuanphan 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