Jump to content

CSS not working

Recommended Posts

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!

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted (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 by SoSwell
Link to comment

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
Posted (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 by SoSwell
Link to comment
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.