To style a basic Slick slider in Webflow, you’ll need to combine Webflow Designer styling with custom Slick initialization and media queries for responsiveness.
1. Design Custom Slider Layout in Webflow
- Add a Div Block for your slider and give it a class (e.g.,
slick-slider). - Inside the slider Div, add individual Slide items (as Divs or other elements).
- Style these items using Webflow's Designer tools — set widths, images, text, padding, margins, etc.
- Use Flexbox or Grid to control alignment and layout inside slide items.
2. Load Slick Slider Assets
- Go to Project Settings → Custom Code → Head and include the required Slick CSS and JS from a CDN:
- CSS:
https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css - JS:
https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js - Also, include jQuery if it’s not already included in your project.
- Ensure you publish your site for the external assets to load.
3. Initialize Slick in Page Settings
- Go to the Page Settings of the page where the slider appears.
- In the Before </body> tag section, initialize Slick with a script like this:
$('.slick-slider').slick({ slidesToShow: 1, arrows: true, dots: true, responsive: [ { breakpoint: 768, settings: { slidesToShow: 1 } }, { breakpoint: 480, settings: { slidesToShow: 1 } } ] });
- Adjust
slidesToShow, dots, arrows, and breakpoints based on your layout needs.
4. Enhance Visual Styling
- Style navigation arrows and dots by overriding Slick’s default styles in Webflow’s Custom Code or Embed Code block.
- Add custom classes to Slick's arrow and dot selectors (e.g.,
.slick-prev, .slick-dots li button). - Use Webflow to position arrows (e.g., absolute positioning inside the slider wrapper).
- Use hover and focus states to add interactivity and effects like scale or color changes.
5. Ensure Responsiveness Across Devices
- In Webflow Designer, use mobile, tablet, and desktop breakpoints to fine-tune the style of slide items.
- Match Slick’s
responsive settings to Webflow’s breakpoints for consistency. - For mobile, consider using
slidesToShow: 1 with centered content.
6. Test on Published Site
- Slick functionality only works on the published Webflow site, not in preview mode.
- Test the slider on multiple screen sizes to validate responsiveness and appearance.
Summary
To style a basic Slick slider in Webflow, you design the layout using Webflow elements, load Slick assets via CDN, initialize the slider in custom code, and style the slides, arrows, and dots for branding. Use responsive settings in both Slick and Webflow to ensure the slider looks great on all devices.