Can I host custom .css and .js files on Webflow for specific projects, such as using the Slick plugin for sliders on my Webflow project?

TL;DR
  • Upload your custom .css and .js files to an external hosting service like GitHub Pages or Dropbox with direct file links.
  • Get direct URLs for the files and integrate them into Webflow's "Custom Code" section using <link> and <script> tags.
  • Publish and test your Webflow project to ensure the custom code functions correctly, updating files on your host as necessary.

To use custom .css and .js files, like integrating the Slick plugin for sliders in a Webflow project, you'll need to follow these steps as Webflow doesn't directly host standalone custom files.

1. Host Files Externally

  • Upload your custom .css and .js files to an external hosting service that supports direct file links. Options include GitHub Pages, Dropbox, or a similar service that allows hotlinking.

2. Get Direct URLs

  • Ensure you have direct URLs to these files. For GitHub Pages, it involves pushing your files to a repository and using the correct URL structure. For Dropbox, use the "Create a link" feature and adjust it to end in ?dl=1 to ensure direct access.

3. Integrate with Webflow

  • Access your Project Settings in Webflow.
  • Navigate to the "Custom Code" section.
  • Paste the <link> and <script> tags inside the <head> or before the </body> tag within the custom code area, referencing the direct URLs obtained in the previous step.

4. Test Your Setup

  • Publish your Webflow project to make sure the custom code loads as expected.
  • Verify functionality on different devices and browsers to ensure everything works smoothly.

5. Update as Necessary

  • Whenever you make changes to your CSS or JS, remember to update the files on your external host and republish your Webflow project if required.

Summary

You can't host custom .css and .js files directly on Webflow, but you can successfully use these by hosting them externally and embedding them into your Webflow project using the custom code feature. Ensure the URLs are direct links and update your project settings accordingly.

Rate this answer

Other Webflow Questions