Website Building » Wix » How Do I Add a Slider on Wix?

How Do I Add a Slider on Wix?

Last updated on January 7, 2023 @ 6:49 pm

There are many ways to add a slider on Wix. One way is to use the Wix platform to create a custom slider.

Another way is to use a third-party slider plugin. And finally, you can use HTML and CSS to create a custom slider.

GREAT NEWS:

Exciting update! We've collaborated with Wix to offer WBI users with a free plan for all website creation needs - Explore the details here.

How to Add a Slider on Wix

Adding a slider on Wix is easy, whether you use the platform’s built-in tools or a third-party plugin. Here’s how to do it:

  1. Using the Wix platform: To create a custom slider using the Wix platform, simply go to the “Add” tab and select “Slider.” Then, choose the type of slider you want to create and follow the instructions. You can also use one of the many pre-made sliders available on Wix. Just click on “More” and then “Sliders” in the “Add” tab.
  2. Using a plugin: If you want more control over your slider, or if you want to use a pre-made design, you can install a third-party plugin.There are many plugins available, but we recommend using Soliloquy Slider. Simply go to the “Add” tab, select “Plugins,” and then search for “Soliloquy Slider.” Once you’ve installed and activated the plugin, follow the instructions on how to create your slider.
  3. Using HTML and CSS: Finally, if you’re comfortable coding in HTML and CSS, you can create a custom slider from scratch. Simply create a new file in your text editor and add the following code:
<div id="slider">
   <div class="slide">
     <img src="image1.jpg" alt="Slide 1">
     <div class="slide-content">
       <h2>Slide 1 Title</h2>
       <p>Slide 1 Description</p>
     </div>
   </div>
<div class="slide">
   <img src="image2.jpg" alt="Slide 2">
   <div class="slide-content">
     <h2>Slide 2 Title</h2>
     <p>Slide 2 Description</p>
   </div>
</div>
<!-- Add more slides as needed -->
</div>

<style>
  #slider {
    width: 500px;
    height: 300px;
    overflow: hidden;
  }
  .slide {
    width: 500px;
    height: 300px;
    float: left;
  }
  .slide img {
    width: 500px;
    height: 300px;
  }
  .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: 300px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
  }
  .slide-content h2 {
    margin: 0;
  }
</style>

This will create a basic slider with two slides. You can add more slides by copying and pasting the .slide div and updating the src attribute of the img element. To add interactivity, you can use JavaScript to add controls to navigate between the slides.

PRO TIP: Adding a slider on Wix may result in decreased website speed and performance. Additionally, it may also cause issues with website responsiveness on mobile devices.
Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.