Webflow sync, pageviews & more.
NEW

How can I style a basic Slick slider in Webflow to make it more visually appealing and responsive on different devices?

TL;DR
  • Add Slick CSS/JS via CDN in Webflow’s Page Settings and initialize the slider with jQuery in the Footer.
  • Build a custom slider structure using Div Blocks, style it with Webflow Designer, and enhance responsiveness with media queries or Slick’s responsive settings.

Styling a Slick slider in Webflow requires custom code and CSS, but you can enhance its appearance and responsiveness with targeted tweaks.

1. Add Required Slick Assets

  • Include jQuery (Webflow includes it by default).
  • Add Slick CSS and JS via CDN in your Page Settings > Custom Code > Head/Footer sections:
  • Head: Add Slick’s CSS (slick.css and optionally slick-theme.css)
  • Footer: Add Slick’s JS (slick.min.js) and initialization script

2. Initialize Slick Slider

  • After loading Slick’s JS file, initialize the slider in the Footer section:
  • Use a jQuery script targeting the slider class (e.g., $('.slick-slider').slick({...}))
  • Add settings such as slidesToShow, autoplay, arrows, or dots for customization

3. Add the Slider Structure in Webflow

  • Create a Div Block with a class like slick-slider.
  • Add slide items (Div Blocks or images) within it—each should share a common class like slide-item.
  • Avoid using Webflow’s built-in slider component; instead, build custom structure to be targeted by Slick.

4. Customize Styling in Webflow

  • Use Webflow Designer to style the slide items:
  • Set fixed height or use aspect ratios (e.g., 16:9 using padding-top).
  • Use Flexbox or Grid inside slide items to center content.
  • Style text, image overlays, or buttons inside each slide container.

5. Add Media Queries for Responsiveness

  • In your Custom Code, write media queries for different breakpoints (or use Webflow’s built-in breakpoints to style slide items).
  • Alternatively, define responsive settings inside the Slick init:
  • Use the responsive property in Slick init like:
    • [ { breakpoint: 768, settings: { slidesToShow: 1 } } ]

6. Replace Default Slick Styles (Optional)

  • Override slick-theme.css styles if desired:
  • Customize arrow icons, dot navigation, margins, and transitions using your own CSS in the Head or an Embed element.
  • Hide Slick’s arrows or dots selectively using display: none; or custom designs.

Summary

To make a Slick slider in Webflow visually appealing and responsive, add Slick’s assets via CDN, structure your slides with custom Divs, initialize the slider with responsive settings, and style it using both Webflow Designer and custom CSS. Use media queries and Slick’s responsive options to adapt it across devices.

Rate this answer

Other Webflow Questions