How to create post slider without any plugins in Elementor (swiper slider method)

How to create post slider without any plugins in Elementor (swiper slider method)

Avro

4 года назад

24,017 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@avro4741
@avro4741 - 19.06.2020 18:34

/*** JS *****/
jQuery(document).ready(function( $ ){
jQuery(".post_slide .elementor-widget-container").addClass("swiper-container");
jQuery(".post_slide .elementor-posts-container").addClass("swiper-wrapper");
jQuery(".post_slide .elementor-post").addClass("swiper-slide");
jQuery('.swiper-container').append('<div class="swiper-pagination"></div><div class="swiper-button-prev"></div><div class="swiper-button-next"></div>');

var swiper = new Swiper('.swiper-container', {
spaceBetween: 30,
slidesPerView: 3,
autoplay:true,
breakpoints: {
640: {
slidesPerView: 1,
spaceBetween: 20,
},
768: {
slidesPerView: 1,
spaceBetween: 40,
},
1024: {
slidesPerView: 2,
spaceBetween: 50,
},
},


pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},

});

});


/*** CSS *****/

.swiper-wrapper {
display: flex !important;
flex-wrap: inherit;
}

Ответить
@gededestrawan9997
@gededestrawan9997 - 01.08.2023 12:48

thanks dude, your help my life, have great day bro 🙌

Ответить
@9lives_games
@9lives_games - 30.11.2022 19:14

Hi, how to get it work with "Improved Asset Loading"?

Ответить
@charlesyamut1909
@charlesyamut1909 - 19.10.2022 11:10

The pagination and navigation arrows appear in the heading, images, title, etc. or each blog post. Please help.

Ответить
@andrewsymonds9214
@andrewsymonds9214 - 01.02.2022 19:27

Hi, thank you for the tutorial, but I can't get it to work in the most recent Elementor/WordPress versions. All containers and classes seem unchanged, but doesn't work. Thanks.

Ответить
@denismiglierini9407
@denismiglierini9407 - 25.01.2022 13:29

Hello @Avro, amazing video, It works in backend editor of Elementor, but on live preview doesnt, do you know where can be the problem ?

Ответить
@tofanbagusapriyanto5649
@tofanbagusapriyanto5649 - 27.12.2021 07:38

thanks you bro

Ответить
@MindMintWI
@MindMintWI - 15.12.2021 10:05

It doesn't work in Elementor 3.5.0

Ответить
@markanthonybanong1241
@markanthonybanong1241 - 24.11.2021 08:57

Is this working in 2022? mine just stop working

Ответить
@PaulTumialan
@PaulTumialan - 22.11.2021 07:32

If I want a lightbox when click in image, How do it?

Ответить
@daze_music
@daze_music - 16.11.2021 17:04

Can someone help, I only have 1 slide showing :(

Ответить
@dragonflyguy4987
@dragonflyguy4987 - 12.11.2021 23:10

Avro thanks for this, with Elementor Improved Asset loading feature turned on this no longer works, could you please update?

Ответить
@rehmankureshi
@rehmankureshi - 15.10.2021 18:53

brother can you made an updated tutorial for this .... alot have changed in elementor and unfortunately its not working :(

Ответить
@milanmatejic7017
@milanmatejic7017 - 15.09.2021 16:17

Hey Avro, I followed every step and copy paste your code, but it doesn't slide for me, I make the one slide per row also added the arrows, but it doesn't work. Can you help, please? Also I noticed that you are writing the JS code into Style section for CSS. Is that something that I need to work on. Please help ASAP @avro.

Ответить
@sushavanchakraborty6293
@sushavanchakraborty6293 - 18.08.2021 14:28

very nice..This guy knows how to use js.

Ответить
@sudipdey1889
@sudipdey1889 - 31.07.2021 18:56

There is one issue. On a mobile screen, every time a slide appears leaves some space on the left side of the scree and eventually the later slides does not even appear completely leaving some good empty spaces on the left. Is there any solution to this?

Ответить
@Faad11992
@Faad11992 - 31.07.2021 00:09

Hi I added this for my product slider in homepage, but there is a slight delay in the beginning,
My horizontal slider shows in the vertical form in the beginning,
After I scrolling all the way down the site comes back to Horizontal Scroll Slider,

Ответить
@sinagun6133
@sinagun6133 - 21.06.2021 19:33

good job man

Ответить
@g-kems
@g-kems - 28.05.2021 14:03

I'm trying to do it with HTmega post following all the steps but it's not working at all. The JS code I've applied is:

\\\\\\\\\\\\\\\\\\\\\------

jQuery(document).ready(function( $ ){

jQuery(".post_slide .elementor-widget-container").addClass("swiper-container");

jQuery(".post_slide .eael-post-grid-container").addClass("swiper-wrapper");

jQuery(".post_slide .eael-grid-post eael-post-grid-column").addClass("swiper-slide");

jQuery('.swiper-container').append('<div class="swiper-pagination"></div><div class="swiper-button-prev"></div><div class="swiper-button-next"></div>');

var swiper = new Swiper('.swiper-container', {

spaceBetween: 300,

slidesPerView: 3,

autoplay:true,

breakpoints: {

640: {

slidesPerView: 1,

spaceBetween: 20,

},

768: {

slidesPerView: 1,

spaceBetween: 40,

},

1024: {

slidesPerView: 3,

spaceBetween: 50,

},

},

pagination: {

el: '.swiper-pagination',

clickable: true,

\\\\\\\\\\\\\\\\\\\\\--------

Somehow this JS script doesn't apply the swiper classes

Ответить
@kurtgerjan
@kurtgerjan - 19.05.2021 14:43

I come here after 1 year and I love you for this tut. Thx for the upgrading:—)

Ответить
@ilhammohomed951
@ilhammohomed951 - 10.05.2021 09:56

Alignments are bit off when i did this. Does anyone have any fix ?

Ответить
@peteharrison3241
@peteharrison3241 - 18.02.2021 13:09

I thought your Slick version was good, but this is better.
How do I remove the pagination completely?
Many thanks

Pete

Ответить
@raviteja99989
@raviteja99989 - 13.02.2021 12:57

how can we disable that dots in that slider?

Ответить
@pavankotla8840
@pavankotla8840 - 04.02.2021 09:25

pagination not came properly in my website

Ответить
@adied7725
@adied7725 - 23.01.2021 00:28

Does this swipe? On mobile

Ответить
@PS3fans1
@PS3fans1 - 18.01.2021 15:37

Nice tutorial! Do you know how to add custom fields to show it in a grid? For example price or something like that?

Ответить
@unseen.afghanistan
@unseen.afghanistan - 25.12.2020 12:22

Hey, the arrows applied to everywhere else I used the media slider in the website. How to undo for other sliders on the website?

Ответить
@emajohnson6303
@emajohnson6303 - 17.11.2020 17:29

Hey there. Thank you so much for this. It's fantastic. I followed your instructions but it's targeting all the elements that slide, like testimonial slider but not the posts that I set up target. Is there something I have missed?

Ответить
@christinekaragianni7265
@christinekaragianni7265 - 07.11.2020 22:12

Is this working with a loop?

Ответить
@ryanadikara6354
@ryanadikara6354 - 16.10.2020 18:09

waiting for more tutorial like this bro

Ответить
@joaoclaudiod.carvalho2689
@joaoclaudiod.carvalho2689 - 05.10.2020 17:11

Thank you for your help! Very good video ....

Ответить
@iftekharrahman8100
@iftekharrahman8100 - 03.10.2020 10:26

Thank you

Ответить
@credlarmoveis8833
@credlarmoveis8833 - 18.09.2020 17:20

tried to do this to make a product slider but failed it ó.ò. Have some tips?

Ответить
@RaulGarcia-tg9xv
@RaulGarcia-tg9xv - 13.08.2020 01:12

great ...greetings from CUBA

Ответить
@saudpardesi8598
@saudpardesi8598 - 23.07.2020 12:56

Hiie i tried with the custom loop post and its not working..Can you tell me how can i achieve for the custom loop post.?

Ответить
@user-rasd8x
@user-rasd8x - 25.06.2020 02:40

Avro, thank you very much! Ur lessons 👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 21.06.2020 23:08

why slider stop when click on arrow left or right ?

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 21.06.2020 13:28

how we can set slide to infinite loop?

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 21.06.2020 13:08

how we can remove bullets?

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 21.06.2020 12:26

how we can make arrows clickable???

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 21.06.2020 12:26

how we can make arrows clickable

Ответить
@franktielemans6624
@franktielemans6624 - 20.06.2020 19:38

I had some problems, but everything works fine now. One strange thing though when you don't want to use the custom CSS & JS plugin. When you add the JS and CSS in an HTML widget, the navigations are added a second time to the HTML widget?! Why is that and is there a way to prevent this?

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 20.06.2020 15:38

hi, can you tell me that how we can embed this code in just specific page ?

Ответить
@adied7725
@adied7725 - 20.06.2020 14:45

Hi, thankyou for your wonderful videos I watch them all and all so useful.
Please could you help in creating vertical and horizontal slider with nested content using Elementor pro or other way please.
Swiper slider has this but I don't see if this can be achieved with elementor?

Thanks and have a great weekend 😊

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 20.06.2020 13:59

i have set the post slide , it works well, Thanks
one issue remaining , the slide showing 4 pagination arrows and 4 dots , why?, it must be 2 arrows and 2 dots

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 20.06.2020 12:57

can you tell me where to place outside arrow code? its urgent

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 20.06.2020 12:56

sorry works well , thanks

Ответить
@abdullahijaz1040
@abdullahijaz1040 - 20.06.2020 12:54

its not work

Ответить
@kenny1394
@kenny1394 - 20.06.2020 12:12

Always the best

Ответить
@franktielemans6624
@franktielemans6624 - 19.06.2020 20:46

YES!!! THANK YOU VERY MUCH!

Ответить