Adding a Hero Slider to your Website


In Part I of our FlexSlider Series, we provide you with the code you need to easily add a hero slider to your website using FlexSlider.

Adding a Hero Slider to your Website

An effective hero slider provides users with the most valuable content on your site aligned with your goals and prompts them to take action. In Part I of our FlexSlider Series, we provide you with the code you need to easily add a hero slider to your homepage using the fully responsive jQuery toolkit FlexSlider by WooThemes.

Below is the HTML, CSS, and JavaScript to add this functionality to your website.

Step 1 - Add the HTML below to where you'd like to place your hero slider

Step 2 - Add the CSS below to the main stylesheet of your website

Step 3 - Add the JavaScript below to a file called slider.js

Step 4 - Add the includes below to the page where your slider lives

Author

Elena Roig
Contributions Editor here at Solodev. Want to be featured on the Solodev Blog? Get in touch.
Follow me on Twitter

Get started today

Join people and businesses across the globe that trust Solodev.

We never share your information with anyone. Learn more

We use cookies to provide and improve our services. By using our site, you consent to cookies.