Jump to content

kristofferdarj

Circle Member
  • Posts

    8
  • Joined

  • Last visited

kristofferdarj's Achievements

  1. Took a while until I got around to this. I tried injecting the following: <link rel="stylesheet/less" type="text/css" href="https://static.currics.com/css/generic.less" crossorigin="anonymous" /> <script src="//cdn.jsdelivr.net/npm/less" ></script> I had already configured CORS on the server as well. This sort of works. Everything looks fine when visiting the page ... BUT ... that less file isn't parsed when I'm editing my site. So depending on how custom stuff you have it might not be a good idea. For me it didn't work out. I still think it should be possible to do via an import statement. Wierd that squarespace doesn't allow it.
  2. I have two different sites to handle two languages. ( currics.com and currics.se ) Is it possible for them to share common css somehow? I have tried having a common less file on another server and importing it via less, but it doesn't seem to work This at the top of my custom css: @import url(https://static.currics.com/css/generic.less); just gives me an error: Cannot read property 'href' of undefined. Not sure about if I will end up in Cross-origin problems later but the error comes before that, in the editor. Shouldn't this be possible?
×
×
  • 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.