How to setup Autoscroll infinite slider in WordPress with Bricks Builder

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024

Комментарии • 50

  • @nicyllapas
    @nicyllapas 25 дней назад

    Hello, thank you for this!

  • @laurenwilliams4098
    @laurenwilliams4098 9 месяцев назад

    100% legend! Thank you for such great content!

  • @evandurant8527
    @evandurant8527 4 месяца назад

    Thanks for the tutorial! Works like a charm except for one small thing : the number of elements that I define as showed in the larger screen =>2560 works for 2560 (it shows 10 elements as defined) but doesn't work for a 3440 wide screen, it only shows 5 as the default size screen...

  • @HenrikHarrell
    @HenrikHarrell Год назад

    Excellent work! I'm new to bricks. I'm glad you are making these tutorials! Cheers!

  • @tahor
    @tahor 2 года назад

    Works great, how can I get this working on 2 sliders on a single page? It only works for one at a time, and I can't figure out how to separate.

    • @DesignwithCracka
      @DesignwithCracka  2 года назад

      Update the syncSliders() function like so:
      function syncSliders() {
      const main = bricksData.splideInstances['main-slider1'],
      thumbnail = bricksData.splideInstances['thumbs-slider1']
      main2 = bricksData.splideInstances['main-slider2'],
      thumbnail2 = bricksData.splideInstances['thumbs-slider2']
      if( main && thumbnail) {
      main.sync(thumbnail)
      }
      if( main2 && thumbnail2) {
      main2.sync(thumbnail2)
      }
      clearTimeout(initTimeout);
      }
      replace those IDs with yours

  • @martinmartin9032
    @martinmartin9032 2 года назад

    Hi there, it was a nice and easy solution back then. Maybe I would suggest to place bricks version to the description for the future. Now you can do all that kind of stuff directly from custom options. All by few tweaks in JSON format. So there is no need to use custom script (it is much cleaner approach). And if you want to have clickable card i would consider wrap it in instead of more css.

    • @DesignwithCracka
      @DesignwithCracka  2 года назад +3

      1. No, you can't autoscroll without the autoscroll extension, at least not properly, that's splideJS documentation. Even if you manage to get it working, it will not have the autoscroll features.
      2. Wrapping the slide with an a tag has disadvantages
      (i) The slide may have unexpected behavior while rendering especially if it has interactive elements within it.
      (ii) If the slide has another link, it's bad practice to have a link or interactive element inside another link

    • @martinmartin9032
      @martinmartin9032 2 года назад

      ​@@DesignwithCracka
      1. Yes if you want to use autoscroll then of course. On the other hand if you want to create infinite slider you don't need to use autoscroll. I am referencing this tutorial ruclips.net/video/vG4e-Mmhebs/видео.html. Which can be simplified with custom options.
      2. Of course it may have. But as you've mentioned it depends:
      (i) This depends on how you will build those interactive elements. If there is product card where you are using add to card button or so then of course youre right. I am pointing towards this tutorial where you are not using such things. In that case it can be done much easier.
      (ii) If you want whole card clickable why would you place there another links :D.
      I am new to youtube comments :D so sorry if I am not clear. Anyway I didn't know or there was no such evidence that you are planning to place there something more than I am seeing on the video.

  • @shendrong3695
    @shendrong3695 2 года назад

    im new with Bricks, would be great if you make series create full website sir, best practice from the global setting, archive, blog, search, sidebar, 404 etc. your video really helpful

  • @Claudius.a
    @Claudius.a Год назад

    Thanks for the fantastic video. Everything works great for me. But the link is not clickable on mobile. I've used both methods to link the card ( tag on the whole wrapper and using absolute position on the title), but none worked. No issue on the desktop, only on a mobile.
    The CSS fix from your previous tutorial didn't have the issue though. Please help confirm if this is a known bug at your end too.
    Thanks for your time.

    • @DesignwithCracka
      @DesignwithCracka  Год назад

      did you use 'inset' or left, right, top, bottom for the pseudo element?

    • @Claudius.a
      @Claudius.a Год назад

      @@DesignwithCracka I used inset.
      root:before {
      content: "";
      position: absolute;
      inset: 0;
      }
      The card is clickable on PC. Only had the issue on mobile.
      Even when I wrapped the whole card as , the issue was still there on mobile. So I guess it's from the autoscroll extension, and not a CSS issue.

    • @DesignwithCracka
      @DesignwithCracka  Год назад

      @@Claudius.a some browsers may not support “inset”. But I’ll check to see if I can reproduce the issue.

    • @Claudius.a
      @Claudius.a Год назад

      @@DesignwithCracka even when I didn't use "inset" and just linked post title directly to post_url, the post title element wasn't still clickable on mobile. I tried with other card elements. All worked fine on PC. The issue is only present on mobile.

  • @mehdimoradi603
    @mehdimoradi603 Год назад

    It was great, learned so useful idea and tips from you, thanks so much

  • @klokkerholm1993
    @klokkerholm1993 2 года назад +1

    I have a problem only on some mobile devices the slider restart when i scroll down and i dosent load the theird item in the collection any idea? on desktop i seem to work smooth

  • @WebsiteStudiosOfficial
    @WebsiteStudiosOfficial Год назад

    Hey Cracka - 2 Questions:
    1.) Is there a way to prevent pause on hover? I have it turned off inside the controls, but it doesnt respect it and still pauses on hover....
    2.) How do you change the speed?

    • @dafphillips3089
      @dafphillips3089 9 месяцев назад

      Did you manage to sort the speed? I've attempted to add the autoScroll and speed JSON option to the custom options part but it just breaks the element. Did you manage to get the speed adjusted successfully?

  • @thijs7448
    @thijs7448 Год назад

    Great! Exactly what I was looking for!

  • @stewber
    @stewber 2 года назад

    What software do you use for screen recording?

  • @pascalehrler
    @pascalehrler 2 года назад

    Great tutorial, thank you!
    Everything works, but the scroll speed is a bit too fast. How can I reduce the speed?

    • @DesignwithCracka
      @DesignwithCracka  2 года назад +1

      add this to the custom options
      "autoScroll": {
      "speed": 1
      },
      adjust the value.

    • @pascalehrler
      @pascalehrler 2 года назад

      Either it doesn't work or I put it in the wrong place.
      Right after new Splide( '#scroll-slider' ).mount( window.splide.Extensions );
      ?

    • @DesignwithCracka
      @DesignwithCracka  2 года назад

      @@pascalehrler Sorry I thought I showed the custom options in this video...
      please check this video for how use the custom options. I've linked the exact timestamp ruclips.net/video/uujSswW4ue8/видео.html

    • @pascalehrler
      @pascalehrler 2 года назад

      @@DesignwithCracka finally, it works. Thank you for your efforts.

  • @mehdimoradi603
    @mehdimoradi603 Год назад

    Hi the second part of ur video, when you assign the link to the whole card. We should use h3 tag for better seo, but when i use heading element with ur code, it doesn't work

  • @mateakovacevic5855
    @mateakovacevic5855 2 года назад

    Is it possible to do the same with WooCommerce products category images?

    • @DesignwithCracka
      @DesignwithCracka  2 года назад

      No, not without some custom PHP to query the category.

  • @danieleromano7442
    @danieleromano7442 2 года назад

    Is it the same on Oxygen?

    • @DesignwithCracka
      @DesignwithCracka  2 года назад

      No, Oxygen uses SwiperJS. Full guide - Oxygen dynamic slider
      ruclips.net/video/sbJZAvXNjEg/видео.html

  • @scotly_emi
    @scotly_emi 2 года назад

    Any help on swiper js with wordpress

    • @DesignwithCracka
      @DesignwithCracka  2 года назад

      The swiperJS website has a good documentation on how to set it up. Any reason you don't want to use the in built Nestable slider?

    • @scotly_emi
      @scotly_emi 2 года назад

      @@DesignwithCracka ya actually I started my theme building with HTML and CSS while swiper, on the other hand, had this wonderful setup, and now am trying to convert it to a dynamic WordPress theme but the issue is setting up the swiper to work

  • @ALIMAHMA
    @ALIMAHMA 3 месяца назад

    Great video but it would be nice if you share the code used

  • @vmm666
    @vmm666 2 года назад

    Follow your steps to set up automatic scrolling now. But why does it appear that it will jump a bit when it scrolls automatically, similar to the slideshow effect of turning the page, and then it will scroll next.

    • @DesignwithCracka
      @DesignwithCracka  2 года назад

      Make sure to turn off auto play. I turned mine off later in the video

  • @reneklokkerholm1453
    @reneklokkerholm1453 2 года назад

    What if it stops and reset on mobile? can make it go all the way and show all products before restart?

  • @nsblog789
    @nsblog789 Год назад +1

    nice tutorial😍😍😍😍😍😍😍
    🤣🤣 but the sound is bad

  • @Peter-Asztalos
    @Peter-Asztalos 2 года назад

    How can I place an arrow navigation icon into the infinite slider? So that the user decides to scroll manually instead.

    • @Peter-Asztalos
      @Peter-Asztalos 2 года назад

      Forgot to say, thank you for your tutorial Cracka. 🙂

    • @DesignwithCracka
      @DesignwithCracka  2 года назад +1

      You can enable the arrows, use the position options to place them were you want. Like I did it here: ruclips.net/video/uujSswW4ue8/видео.html

    • @Peter-Asztalos
      @Peter-Asztalos 2 года назад

      @@DesignwithCracka Thank you so much for your answer!

  • @KomentarSaya
    @KomentarSaya Год назад

    can you share the code script sir?

  • @Xenio2007
    @Xenio2007 2 года назад

    Nice tutorial, but you should invest in a good microphone, all sibilance consonants are annoying :(