SoSwell Posted August 1, 2023 Posted August 1, 2023 I've read a few other threads about this but haven't seen a solution. None of the CSS on my site is working after having it on there working for years. I removed all of it and tried to add it again. I've also added !important and cleared my Chrome cache. Neither worked. Does anyone know a solution? Thanks!
CassAggett Posted August 2, 2023 Posted August 2, 2023 Can you share a link to your site and an example of what code isn't working? Instruction: How to set a site-wide password If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆 Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business. WEBSITE • INSTAGRAM Â
SoSwell Posted August 2, 2023 Author Posted August 2, 2023 (edited) Sure...I had some other code on it to tailor my footer etc but it stopped working so I removed it. I added this again just now for my H1 font and menu dropdown to be transparent but they are also not working: <style> h1 { Â font-family: 'Aktiv Grotesk', sans-serif !important; Â text-transform: uppercase !important; Â font-size: 1rem !important; Â font-weight: 500 !important; } Â .dropdown-menu { Â Â background-color: transparent !important; Â } </style> website:Â https://soswellstudio.com.au/ Edited August 2, 2023 by SoSwell
tuanphan Posted August 2, 2023 Posted August 2, 2023 Use this new code <style> div.header-nav-folder-content { background-color: transparent !important; } body h1 { font-family: 'Aktiv Grotesk', sans-serif !important; text-transform: uppercase !important; font-size: 1rem !important; font-weight: 500 !important; } </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!)
SoSwell Posted August 2, 2023 Author Posted August 2, 2023 (edited) So something weird is happening. I added the code in and saved. Nothing happened. Then I left the code there and went into site styles and changed the H1 text to paragraph and back and it changed to the font from the CSS. But...then I saved and exited the page and it went back to the old H1. On the bottom of the CSS box it's saying I have a syntax error on line 1. Edited August 2, 2023 by SoSwell
tuanphan Posted August 3, 2023 Posted August 3, 2023 On 8/2/2023 at 11:21 AM, SoSwell said: So something weird is happening. I added the code in and saved. Nothing happened. Then I left the code there and went into site styles and changed the H1 text to paragraph and back and it changed to the font from the CSS. But...then I saved and exited the page and it went back to the old H1. On the bottom of the CSS box it's saying I have a syntax error on line 1. Hi, That code is in Page Header, not CSS box. If you want to add code to CSS box, you need to use this code div.header-nav-folder-content { background-color: transparent !important; } body h1 { font-family: 'Aktiv Grotesk', sans-serif !important; text-transform: uppercase !important; font-size: 1rem !important; font-weight: 500 !important; }  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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment