25 mei 2021|Divi-zelfstudies,👨🏫 Zelfstudie|13 opmerkingen
COMPLEXITEIT
Tussenliggend
TIJD
10 minuten
AANNAMES
- Basiskennis over Divi.
- Divi is al geïnstalleerd en geconfigureerd
- Comfortabel met FTP-ing naar uw site en het uploaden van bestanden
- Er is een kindthema geïnstalleerd en actief
VERSIES
Divisie 4.9.4
In deze zelfstudie bekijken we hoe we een aantal geweldige schuifregelaars kunnen maken met de mogelijkheid om alles in Divi te schuiven met behulp van Slick.js, een lichtgewicht javascript-bibliotheek met een heleboel coole functies. We zijn allemaal in die positie geweest waarin onze Divi-levens gewoon een beetje gemakkelijker zouden zijn als ik een schuifregelaar zou kunnen hebben met een aantal Divi Blurb-modules, misschien een rij of zelfs een combinatie van deze Divi-elementen. Maak je geen zorgen, je Divi Engine-fam is hier om je te laten zien hoe zonder nog een plug-in, in plaats daarvan zullen we maar een paar regels code en deze geweldige bibliotheek gebruiken.
Tijd om eens nader te bekijken!
Voorbeeld:
Glad wat nu?
Geweldige vraag! Slick Slider is een gratis JavaScript-bibliotheek met een heleboel handige functies die het verschuiven van alles op uw website een fluitje van een cent maken. Ons favoriete onderdeel? We kunnen het eenvoudig integreren met elke Divi WordPress-site, zodat u met heel weinig code verschillende elementen kunt schuiven.
Bekijk enkele van de hoogtepunten van de functie:
N
Volledig responsief. Schalen met zijn container.
N
Aparte instellingen per breekpunt.
N
Vegen ingeschakeld. Of uitgeschakeld, zo u wilt.
N
Volledig toegankelijk met navigatie met pijltjestoetsen.
N
Autoplay, stippen, pijlen, callbacks, etc...
Video uitleg
Tekst instructies
Als u de tekst en instellingen voor deze zelfstudie liever snel kopieert en plakt, scrolt u naar beneden en ziet u alles wat betrekking heeft op de stappen in de videozelfstudie.
BELANGRIJKE NOTITIE:ALS (en alleen ALS) u BodyCommerce of Divi Machine gebruikt, hebben we goed nieuws, u kunt stap 1 en 2 volledig overslaan, aangezien we Slick.js al voor u hebben geïntegreerd😁
Stap 1) Voeg de Slick.js-bestanden toe aan uw kindthema
Slick.js downloaden
Ga naarhttps://kenwheeler.github.io/slick/en download het zipbestand en pak de bestanden uit.
Slick.js uploaden
Upload met behulp van uw favoriete FTP-client de uitgepakte Slick-map naar uw WordPress-site in de map Child Theme.
OPMERKING: Deze tutorial gaat ervan uit dat je weet hoe je moet FTP-en naar je WordPress-installatie- en uploadbestanden. Als u niet zeker weet hoe u dit moet doen, kijk dan eensditgeweldige tutorial door het team van Elegant Themes die je zal helpen.
Stap 2) Slick.js integreren in uw Divi WordPress-installatie
Nu onze bestanden zijn geüpload, laten we de Slide.js-bestanden integreren in onze Divi-installatie.
Ga naar Divi > Thema-opties > tabblad Integratie
Kopieer en plak de volgende code in de
sectie:OPMERKING: Als je problemen hebt, zorg er dan voor dat de Slick-map rechtstreeks naar de hoofdmap van je onderliggende thema wordt geüpload. Als je geen child-thema hebt, bekijk dan zeker deze geweldige tutorial over HHoe maak je een Divi Child-thema met dynamische CSS.
Stap 3) Maak je eerste Slick Slider in Divi
Maak een nieuwe pagina> Bouw vanaf nul> Begin met bouwen
Voeg een rij met één kolom toe die alle Divi-modules zal bevatten die we zullen schuiven met Slide.js
Voeg een aantal of variaties van modules toe die u wilt schuiven, we gebruiken een Divi Blurb-module voor deze zelfstudie
Stap 4) Voeg wat jQuery-magie toe
Om Slick.js op deze Divi-pagina te gaan gebruiken, moeten we wat jQuery toevoegen om aan te geven welk type schuifregelaar we bouwen en welke klasse zal worden gebruikt om onze bovenliggende container toe te wijzen voor de Divi-modules waaruit onze dia's zullen bestaan.
Voeg een nieuwe sectie toe
Voeg een nieuwe rij met één kolom toe
Voeg een codemodule toe en kopieer en plak de onderstaande code tussen het openen en sluiten van
OPMERKING: U kunt een lijst met verschillende voorbeelden van verschillende instellingen en schuifregelaarstijlen vinden door te volgenditkoppeling.
Stap 5) Voeg de CSS-klasse die we hebben aangewezen toe aan onze bovenliggende container
Open de kolominstellingen voor de rij met alle modules die we gaan schuiven.
Rij-instellingen > Kolominstellingen
Kolom instellingen
tabblad Geavanceerd
CSS-klasse: slide-stuff
Goed gedaan, je hebt het voor elkaar!
OPMERKING:Als je problemen hebt met het laten werken van de schuifregelaar zoals hier getoond, is het zeer waarschijnlijk dat je het verkeerde pad naar je child-thema gebruikt vanaf stap 2. Je kunt controleren of dit het probleem is door de pagina te inspecteren en te kijken of er is een 404-fout met betrekking tot de slick.js-bestanden. Zorg ervoor dat u [uw onderliggende themamap] vervangt door uw onderliggende themamap zoals deze zich op uw webserver bevindt.
Conclusie
Dat was nu toch niet zo moeilijk? Het verschuiven van een verscheidenheid aan modules is een geweldige manier om uw Divi WordPress-site te laten schitteren en zich te onderscheiden van de rest. Maar het goede nieuws houdt daar niet op. Als u BodyCommerce of Divi Machine op uw site gebruikt, kunt u stap 1 en 2 overslaan omdat we de Slick.js-integratie al voor u hebben gedaan. Het enige dat u hoeft te doen, is Slick.js initialiseren op de Divi-pagina's waar u de plug-in wilt gebruiken met de klassenaam die u moet toewijzen aan de ouder van de elementen die u wilt schuiven. Geweldige dingen!
We hopen dat het leren hoe je iets in Divi kunt schuiven met Slick.js een leuk avontuur voor je was en we kunnen niet wachten om te zien wat je bouwt met deze nieuwe vaardigheid. Laat hieronder zeker een reactie achter met links naar je geweldige creaties en eventuele suggesties voor toekomstige tutorials.
Post jij ❤️ dit soort berichten?
Blijf op de hoogte van onze nieuwste tutorials, fragmenten en waardevolle artikelen door u aan te melden voor onze nieuwsbrief!
Wat dacht je?
13 reacties
Voeg uw opmerking toe
Dien een reactie in
Dat moet je zijningelogdeen reactie plaatsen.
Svenop 28 februari 2022 om 18:08 uur
leuk heb je hier een json van?
Log in om te antwoorden
Andreasop 10 januari 2022 om 23:09 uur
Is er een manier om een module toe te voegen in de bovenliggende container die GEEN deel uitmaakt van de schuifregelaar?
Ik moet een statische tekstmodule toevoegen onder mijn schuifregelaarmodules, maar ik kan deze niet in een nieuwe rij of sectie plaatsen omdat het een schuifregelaar binnen een schuifregelaar is. Elke css die ik kan toevoegen waardoor het de kolommenklasse of iets dergelijks negeert?
Log in om te antwoorden
Berovenop 27 oktober 2021 om 13:54 uur
Ik kan dit niet laten werken met de Post Slider-module om ervoor te zorgen dat je naar het volgende item in de Post Slider-set kunt slepen en vegen. Zijn er geheimen om te delen over hoe dat zou kunnen werken?
Log in om te antwoorden
Walterop 14 oktober 2021 om 19:56 uur
heel erg bedankt voor de post, maar ik heb een probleem met de lay-out op de frontend, op DIVI ziet het er geweldig uit, maar op live breekt het
Log in om te antwoorden
Andreas Joséop 13 september 2021 om 13:54 uur
Hé bedankt voor een geweldige video!
Ik heb je video 1/1 gevolgd, maar ik krijg het niet aan de praat!
Ik krijg deze foutmelding: “Weigerde stijl 'https/www.aarhusaabnerop.dk/wp-content-themes-Divi-Child-Theme/style.css?ver=5.8.1' toe te passen omdat het MIME-type ('text/html ') is geen ondersteund stylesheet-MIME-type en strikte MIME-controle is ingeschakeld.
Het bestandspad is correct!
Heb je deze fout eerder gezien?
Log in om te antwoorden
Ruth Chegeop 18 juni 2021 om 11:39 uur
Bedankt, ik was al een tijdje op zoek naar deze functie. Maar is het echt nodig om FTP te gebruiken? Ik heb er geen en natuurlijk kan ik het krijgen, maar voor alleen deze ene functie lijkt het een beetje ingewikkeld.
Log in om te antwoorden
Divi-motorop 23 juni 2021 om 10:04 uur
Het hoeft niet, maar het is beter om dit te hebben. U kunt rechtstreeks naar het script linken op cdnjs =https://cdnjs.com/libraries/slick-carousel
Laat me weten of dit zinvol is
Log in om te antwoorden
Ruth Chege Nielsenop 19 augustus 2021 om 13:52 uur
Ik heb eigenlijk geprobeerd door te gaan met de implementatie, maar ik krijg het niet voor elkaar om het in een schuifregelaar te veranderen.
De blurbs worden steeds verticaal gestapeld. Ik gebruik de exacte naamgeving van de map met het onderliggende thema, dus dat zou goed moeten zijn. In de inspectiemodus kan ik deze fout zien: Uncaught TypeError: $(...).slick is geen functie
op HTMLDocument.eval (eval op ((mijn website-URL)/:2), :4:21)
bij e (jquery.min.js?ver=3.6.0:2)
op t (jquery.min.js?ver=3.6.0:2)Enig idee wat er mis is?
Log in om te antwoorden
Asop 20 augustus 2021 om 3:32 uur
we hebben hetzelfde probleem met de gelikte schuifregelaar die is geïmplementeerd op de site waar ik aan heb gewerkt.
Log in om te antwoorden
Sakshiop 9 september 2021 om 14:39 uur
Zelfde probleem. Heeft iemand hier een oplossing voor.?
Joop 10 september 2021 om 18:47 uur
Zelfde probleem hier. Het werkte een paar weken geleden maar werkt nu niet meer. Alles is verticaal gestapeld aan de linkerkant van de pagina. we gebruikten oorspronkelijk v1.6.0 via de "Icecream Divi Slider".
Joop 10 september 2021 om 19:12 uur
Heb het uitgezocht. Als je de nieuwste Divi-versie gebruikt, hebben ze een nieuw tabblad onder Divi> Thema-opties> Prestaties. Onderaan staat een schakelaar voor "JQuery en jQuery Migrate uitstellen" - zorg ervoor dat dit is uitgeschakeld. Ik heb veel vreemde front-end-functionaliteitsproblemen opgemerkt met plug-ins/JS van derden, dus we hebben deze optie uitgeschakeld voor alle Divi-builds en in de meeste gevallen heeft het gewerkt om het probleem op te lossen.
Rafop 1 maart 2022 om 3:23 uur
Jos heel erg bedankt.
Het was de "Defer jQuery" die me zoveel problemen bezorgde.
FAQs
How do I use a full width slider in Divi? ›
Add The Divi Fullwidth Slider Module
Click the “+” icon to add a section and click the “Fullwidth” tab to add a fullwidth section. Once clicked, this fullwidth module library will pop up. Scroll to “Fullwidth Slider” and click to load the module.
- Example.
- Install. Get the latest release from Slick GitHub repository. ...
- Step 1: Include jQuery. Include the jquery script 1.7+ in the page. ...
- Step 2: Include the slick script. Include the slick. ...
- Step 3: Include the slick stylesheet. ...
- Step 4: Create HTML markup. ...
- Step 5: Configure Slick.
You can use "appendDots: $(Element)" in the Slick settings. It will append the dots to that element. You can place that element at any location using normal CSS. If you want it over the slide then you can use absolute or relative positioning on the element.
What is the best image size for Divi slider? ›The width of your fullwidth slider background image is always determined by the browser width. Based on standard screen sizes we recommend that your images are at least 1280px wide. But for larger monitors, a safer bet would be to use an image that is 1920px wide.
How do I make Divi slider full height? ›Open your slider module and go to the design tab. Under sizing, you can give your slide height for example 600px. You can also give it a minimum height or a maximum height. You might want to adjust the height for mobile devices, to do this hover over the height text and click on the mobile options.
How do I make slick slider autoplay? ›- window. onload=function(){
- $('.slider'). slick({
- autoplay:true,
- autoplaySpeed:1500,
- arrows:true,
- prevArrow:'<button type="button" class="slick-prev"></button>',
- nextArrow:'<button type="button" class="slick-next"></button>',
- centerMode:true,
Numbers can be removed by using the text-indent property. Save this answer.
How do I create a dynamic carousel in WordPress? ›- Create a Custom Post Type with Custom Fields. Before we add the slider itself we need to add the information that we will display within the slider and also build the structure on which it will appear. ...
- Add Media to Posts. ...
- Add a Slider.
A slideshow component for cycling through elements—images or slides of text—like a carousel.
What makes a slider a slider? ›What makes a slider? Technically, a slider is not just a small burger – a slider is a small burger where the patty is cooked with onions and pickles. A true slider is made by cooking the onions, putting the patties on top and then flipping the entire thing and cooking further.
How do you add animations to sliders? ›
- Press Ctrl and select the objects you want.
- Select Format > Group > Group to group the objects together.
- Select Animations and choose an animation.
In a 1 column layout the image should be 1080px in width to be optimized. In a 1/2 column layout each image should be 510px in width to be optimized. In a 1/3 column layout each image should be 320px in width to be optimized. In a 1/4 column layout each image should be 225px in width to be optimized.
What is the best logo size for Divi theme? ›The most recommended size is usually between 250×100 and 250×150. The logos that we include in our Divi layouts are usually in the 160×50 or 225×100 range, but some are much different based on their shape.
What is the perfect image size for WordPress? ›Here are the best image sizes for WordPress: Blog post image size (1200 x 630 pixels) Header image size (banner size 1048 x 250 pixels) Featured image size (landscape 1200 x 900 pixels)
How do you make a slider revolution full height? ›To change the dimensions of the slider, scroll down to the Slide Layout Section. To change the height of your slider, you'll need to alter the Layer Grid Size. Please keep in mind that this will affect the entire slider and that the content of individual slides might need to be adjusted to match the new height.
What size is a full width slider image? ›Full page slider: 1920x1080px.
Does WordPress automatically resize images? ›2. Adjust image sizes in the Settings > Media screen. Here you can change width and height for the thumbnail, medium, and large image sizes. WordPress will then automatically create scaled versions of each image using these sizes.
What size is a full width slider in WordPress? ›In the Image Size dropdown, simply select Full Width and change the slider dimensions to 3000 x 400 px. Make sure to hit the Publish button. For basic slider settings, you should check out this guide on how to create an image slider in WordPress.
How to make carousel slider responsive? ›- Step 1: Understand the structure. ...
- Step 2: Implement a simple carousel in React. ...
- Step 3: Add some styling. ...
- Step 4: Add the Carousel to App.js. ...
- Step 5: Configure the active item. ...
- Step 6: Implement the indicators. ...
- Step 7: Carousel/Slider with auto cycle. ...
- Step 8: Pause/Resume the Carousel/Slider on mouse hover/mouse leave.
- npx create-react-app my-app.
- npm install react-slick.
- yarn add react-slick.
- import Slider from 'react-slick';
- import 'react-slick/dist/react-slick. ...
- npm install slick-carousel.
- yarn add slick-carousel.
How do you make carousel slide automatically in flutter? ›
- Step 1: Create a new Flutter project. flutter create carouselslider. ...
- Step 2: Install the package. ...
- Step 3: Import the package. ...
- Step 4: Create the CarouselSliderExample class.
- Step One: Download Slick Carousel files: The first thing we need to do is download the slick files from kenwheeler.github.io. ...
- Step Two: Enqueue the files. Now go to your functions. ...
- Step Four: Add HTML Markup for carousel. ...
- Step Four: Initialise the carousel.
A number slider is a type of rating question. Rating questions are used to get a clear view of how well you're doing or how someone likes your product, service, or business. Instead of vague assumptions, you get an exact score on a scale that you've designed.
How do you use a number slider? ›Insert or remove slide numbers
Go to Insert > Slide Number. Select Slide Number and enter the starting slide number. Preview shows the location.
Slick Slider WordPress plugin is fully responsive, swipe enabled, with desktop mouse dragging and Infinite looping. Our plugin is fully accessible with arrow key navigation auto-play, dots, arrows etc. You can also display an image slider on your website header.
How do I bring up the pop up menu? ›The default mouse trigger is Shift + Middle Mouse Button and the default keyboard trigger is Shift + Windows + W. These triggers show the Alternative menu over any windows.
How do I trigger a pop up in WordPress? ›In the popup editor, step 3 Display Rules -> Display Rules tab, make sure the popup is enabled on the page or post that you are going to add the button. If you don't like the popup to show up automatically, in the popup editor, step 3 Display Rules -> Display Time, uncheck all options.
How do I create a pop up in Divi without plugins? ›- Step 1: Add the CSS Snippet. To create popups in Divi Builder without the help of any plugins, first, we need to add the CSS snippet into the Divi Theme Options. ...
- Step 2: Add the jQuery Snippet. ...
- Step 3: Create the Popup Section.
The Popups For Divi plugin allows you to create a Popup from any regular section on your Divi page: Edit any section on your page to find the new “Popup” tab. You can then build your Popup within the section using the default Divi modules, and easily customize your popups.
How do I Edit a pop up in Divi? ›- Open up your Visual Builder and edit a Section – you'll see a new “Popup” tab in the Section Settings.
- Toggle the option “This is a Popup” and set the “Popup ID” to something (e.g., “ newsletter-optin “).
What is the difference between slider and carousel in WordPress? ›
However, sliders only display one slide at a time. Whereas carousels allow users to see multiple slides at once. There are two types of sliders, one is the simple slider – the most common one – and the other is the carousel type. The simple slider only displays one image at a time.
How do I add a slick slider to my WordPress theme? ›- Upload the 'wp-slick-slider-and-carousel' folder to the '/wp-content/plugins/' directory.
- Activate the “wp-slick-slider-and-carousel” list plugin through the 'Plugins' menu in WordPress.
- Add this short code where you want to display slider. [slick-slider] and [slick-carousel-slider]
- Step 1: Create A New MaxGalleria Gallery. ...
- Step 2: Add Images To Your Gallery. ...
- Step 3: Choose Slick Slider Template. ...
- Step 4: Configure Slick Slider Options. ...
- Step 5: Add A Front-end Description (Optional) ...
- Step 6: Publish Gallery. ...
- Step 7: Use Gallery Shortcode To Display.
Once you upload and activate the plugin, go to DiviGear in the dashboard menu and activate your license. If you have multiple plugins from this developer you'll need to select the plugin's tab. A new module is added to the Divi Builder called Product Carousel.
How do I use slick slider in WordPress without Plugins? ›- Step One: Download Slick Carousel files: The first thing we need to do is download the slick files from kenwheeler.github.io. ...
- Step Two: Enqueue the files. Now go to your functions. ...
- Step Four: Add HTML Markup for carousel. ...
- Step Four: Initialise the carousel.