Product

Build pages with total design freedom

Launch faster with flexible templates

Elevate copy, SEO, and visuals

Compare variants and lift results

Track clicks and uncover intent

Scale pages from one smart layout

Connect pages to your campaign flow

Use a reliable and secure platform

Solutions

Capture more leads with less friction

Expand pages into new markets

Turn more visits into conversions

Get more return from paid traffic

Strengthen your presence across channels

Launch pages tailored to your brand

Scale page operations with control

Match content to visitor intent

Resources

Practical advice for marketers

Guides, setup, and how-tos

Free tools and learning for marketers

See how teams improve results

Explore the platform with our team

Get expert help with page design

HomeHelp CenterImagesMultiple image sliders

Multiple image sliders

If you want to have more than one slider (image carousel) on your landing page, use the following instructions to implement it. With this method, you will be able to add a single slider to your landing page too.

Play the video below to see an example of a slider on a landing page:

Add slider sections

1. Log in to your Landingi account and go to the editor of your landing page.

2. Create a new section for your slider – on the left side of the editor, find the Section widget (1), then drag and drop it into the active area of your landing page.

Add a class to your new section. In the widget toolbar on the right, go to the Other tab at the very bottom and type my-slider in Classes (2).

3. Drag new Image widgets and add images. Place one image above the other.

Remember that the images in the slider:

  • should be the same size;
  • their size should reflect the size of the slider;
  • they will display in the slider in the order they were added to the editor;
  • you can add as many photos as you want.

4. Add a slider-image class to each slider element.

5. Below the previously created section (slider section), drop another section widget to create a navigation section.

6. Drag two Icon widgets there: one for switching slides left and the other for switching slides right. Drop them in a chosen place, click on them, select Change, and choose your icons (preferably arrows).

7. In the widget toolbar on the right, give them previous and next classes respectively.

8. Publish your landing page.

You can add as many slider sections and navigation sections as you want.

Add JavaScript code

1. Go to the JavaScript Code tab of your landing page. You can enter the tab right from the editor.

2. Create a new script. Name it (1) and choose the Body bottom (2) position on the Main page (3). Paste the code indicated below in the Content (4) field.

<script>   
$('.my-slider').each(function(){     
var $currentSlider = $(this);     
$(this).find('.slider-image').not(':first').hide();     
var current = $currentSlider.find('.slider-image').first();     
var $sectionUnderSlider = $currentSlider.next();     
var time = 16000;     
var buttonClicked = 0;          
$sectionUnderSlider.find('.next').click(function(){       
buttonClicked = 1;       
setTimeout(function(){         
buttonClicked = 0;       
}, time)       
current.fadeOut()       

if (current.nextAll('.slider-image').length) {         
current = current.nextAll('.slider-image').first()      
} else {         
current = $currentSlider.find('.slider-image').first();        
}       
current.fadeIn(300);     
});          
$sectionUnderSlider.find('.previous').click(function(){       
buttonClicked = 1;       
setTimeout(function(){         
buttonClicked = 0;       
}, time)       
current.fadeOut()       
  
if (current.prevAll('.slider-image').length) {         
current = current.prevAll('.slider-image').first()       
} else {         
current = $currentSlider.find('.slider-image').last();       
}       
current.fadeIn(300);     
})          
setInterval(function(){       
if (!buttonClicked) { current.fadeOut()       
if (current.nextAll('.slider-image').length) {         
current = current.nextAll('.slider-image').first()       } 
else {         
current = $currentSlider.find('.slider-image').first();       
}       
current.fadeIn(300);       
} }, time)  });    
</script>  

3. Click Add script to save the code.

4. Go to your published landing page and check if the sliders display correctly.

You can also check the alternative method of creating a slider (one slider per landing page).

TABLE OF CONTENT
G2 reviews for Landingi