Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
katelyndekle

Custom CSS not loading properly

Question

I've got a bit of custom CSS on a client site that I just noticed is suddenly not loading properly. It's as if the CSS isn't there anymore, but on page refresh, it works just fine. Any reason for this? Is anyone else having this issue also? 

NOTE: the CSS code itself was working last time I checked the site a couple weeks ago and nothing has changed since then (that I know of); I haven't edited the CSS since it was implemented some time last year.

ATTACHMENT: This is a screenshot of a customized social media landing page, so I've customized the button widths here to look normal on phone-size screens. So, the buttons have CSS to standardize their width, the Back To Top button in the bottom right corner is CSS too. You can see the BTT button code is working in this screenshot, but the button width code isn't. Another time I refreshed it & it worked fine; refreshed it again and the hex color code for the red Back To Top button was showing at the top of the page with no other code visible. All really weird behavior I haven't seen before, seemingly not due to any recent/additional CSS changes.

 

Thanks!

Screen Shot 2020-01-06 at 4.16.14 PM.png

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

Hi Katelyn @katelyndekle

Is it possible that you placed the CSS somewhere other than in Design > Custom CSS?

If you're using a newer 7.0 template that supports Ajax, that's the only place to put the CSS. If you put it anywhere else it will appear to load fine when you're logged on (or when you hit refresh) but for every other visitor, it simply won't work. If this indeed the issue, here's a guide that I wrote (a while ago!) to explain.

If it's not the issue, please help us to see the issue first hand by providing us with a working link to the website.

-Paul


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Expert and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDatepicker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links. Book a Squarespace Expert when you need help.

Share this post


Link to post
  • 0
On 1/6/2020 at 6:05 PM, paul2009 said:

Hi Katelyn @katelyndekle

Is it possible that you placed the CSS somewhere other than in Design > Custom CSS?

If you're using a newer 7.0 template that supports Ajax, that's the only place to put the CSS. If you put it anywhere else it will appear to load fine when you're logged on (or when you hit refresh) but for every other visitor, it simply won't work. If this indeed the issue, here's a guide that I wrote (a while ago!) to explain.

If it's not the issue, please help us to see the issue first hand by providing us with a working link to the website.

-Paul

Hi Paul! Thanks for the reply. 🙂 No, it's all in the custom CSS design area of the site. That site was created last Dec 2018, so not terribly new. I've been using Squarespace since 2016, so not a super long-time user but pre-7.1 era for sure. 

Oddly, the issue seemed to only occur that day and went back to normal the following day. I'm going to check out your guide anyway though, just in case it helps in the future. Thank you for sharing!

Share this post


Link to post
  • 0

My site started to have this issue as I've been editing it this week. Even now, sometimes it loads some of the CSS, and other times it doesn't.
I wanted the page to be FULL width, and Squarespace seems to make sure on the template i'm on that there's always a minimum of 17 px. So, I had to put in CSS to negate that. Sometimes it doesn't load that part of the css, and i'm assuming the template code is being loaded after instead (which it shouldn't be). It's becoming annoying as I like the template I have, but I don't know if I can easily move all the code to developer mode and adjust it more easily so that these weird issues don't occur. 
 

Share this post


Link to post
  • 0

It would be very unusual for the CSS not to be loaded. Perhaps your CSS is just not specific enough and is overridden by built-in CSS or inline styles @StudioVulcan? If you provide a public site/page URL and examples of the CSS, we can take a look.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Expert and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDatepicker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links. Book a Squarespace Expert when you need help.

Share this post


Link to post
  • 0
18 minutes ago, paul2009 said:

It would be very unusual for the CSS not to be loaded. Perhaps your CSS is just not specific enough and is overridden by built-in CSS or inline styles @StudioVulcan? If you provide a public site/page URL and examples of the CSS, we can take a look.

https://www.studiovulcan.com/portfolio

I feel like that wouldn't be the case if a refresh loads it properly? But, i'm not an expert on this stuff, i have to fiddle for a while to figure it out. Then of course you add mobile stuff into the mix and all hell breaks loose because I have to figure out a way for it to not effect mobile, too. 😛

AHHHHH you know what. It's what you were referring to. I felt that last night I had to inject it. I just put it into the custom CSS and now it seems to work. If i see it glitching again, i'll return. So basically, don't inject anything into pages now. That's going to make things harder for myself, but if it keeps the site consistent, that's what I need to do! 🙂

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...