@erics Put it in an image tag, in an embed code component:
This no longer works as rawgit.com has shut down. Any alternatives?
Is there no solution, where i can add my custom scripts to the CDN of Webflow? Just to avoid some more HTTP requests? Or is Webflow already using HTTP 2?
I mean 2 CDN instead of one is still not the best solution
Not sure if it still works, but I’ve done it before. You can upload a text file to your assets, then load that file.
how do you do that ? i tried getting the url of my text assets but it doesn’t work.
my text url is something like this
Any update on this? Doesn’t appear to work anymore.
Is it possible to make
fill="currentColor" work with this method? I’ve tried implementing the gist code via Combinatronics and it works but the currentColor feature doesn’t.
I want to utilize Webflow’s text color as a way to change SVGs color. It works if I use the code inside Webflow but obviously, I’m using the method with GitHub because SVGs I’m trying to add are exceeding Webflow’s 10K character limit.
Thank you in advance for a reply, Sam!
@jkshilling sorry it’s a late reply to that thread but it might be helpful for people looking for it in future.
So if your raw link looks like this:
You can change it to:
Hope that helps. Cheers
I’ve tried linking to my HTML file and haven’t had any luck with the embed. The conversion to combinatronics format works great, but I can’t get webflow to render anything. Am I missing something while embedding this? Thanks in advance.
Read-only link: https://preview.webflow.com/preview/anugreh-sapras-marketing-website?utm_medium=preview_link&utm_source=designer&utm_content=anugreh-sapras-marketing-website&preview=a9893a6bda5b492a9dc4f16f90440733&pageId=61eae43bc93692940d69393e&workflow=preview
@Daviddj - HTML can’t be embedded this way. This topic is about including JS from GitHub which should be done by using jsDelivr.
I followed all instructions and have included this in the Footer Code at site level:
But it doesn’t load the dark mode function on my website: https://silvansoeters.webflow.io/
Could you please take a look at this?
Thank you very much.
@Silvan_Soeters1 - Scripts should only include code. Not script tags (HTML). You can’t load HTML this way.
Thank you Jeff. It’s working now!
Hello Jeff, i’ve tried to embed an html file from github repository using jsDeliver cdn but is not working like the css file. could you please help? i’m a newbie
i placed this embeded
…( raw link: https://raw.githubusercontent.com/jhosuer24/wwd/main/watch.html )
A post was split to a new topic: Custom code using external script issue