• Home
  • About Us
  • Contact Us
  • DMCA
  • Sitemap
  • Privacy Policy
Thursday, March 30, 2023
Insta Citizen
No Result
View All Result
  • Home
  • Technology
  • Computers
  • Gadgets
  • Software
  • Solar Energy
  • Artificial Intelligence
  • Home
  • Technology
  • Computers
  • Gadgets
  • Software
  • Solar Energy
  • Artificial Intelligence
No Result
View All Result
Insta Citizen
No Result
View All Result
Home Software

How you can use Magento Carousel Plugin as an alternative of Third Celebration Carousel

Insta Citizen by Insta Citizen
November 7, 2022
in Software
0
How you can use Magento Carousel Plugin as an alternative of Third Celebration Carousel
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


On this article, we’ll present you the way to make the most of the Slick carousel plugin in Magento as an alternative of Third Celebration plugins like owl carousel, and so forth. Slick is a superb and well-known plugin for presenting pictures or product lists equivalent to sale merchandise, cross-sell merchandise, upsell merchandise, in addition to different customized product lists.

Be aware: You may combine it in Magento 2.4.3 and its higher variations solely.

Now, allow us to create a banner slider step-by-step

Step1: First, create a customized module with all of the Magento required information.
In our case Webkul_CustomSlickSlider

Step2: Now create a customized phtml file within the under path
app/code/Webkul/CustomSlickSlider/view/frontend/templates/customslickslider.phtml

<html>
    <physique>
        <div class="slick-slider">
            <div class="merchandise"><img src="https://picsum.pictures/200/300" /></div>
            <div class="merchandise"><img src="https://picsum.pictures/200" /></div>
            <div class="merchandise"><img src="https://picsum.pictures/id/237/200/300" /></div>
            <div class="merchandise"><img src="https://picsum.pictures/seed/picsum/200/300" /></div>
            <div class="merchandise"><img src="https://picsum.pictures/200/300?grayscale" /></div>
            <div class="merchandise"><img src="https://picsum.pictures/200/300/?blur" /></div>
            <div class="merchandise"><img src="https://picsum.pictures/200/300/?blur=2" /></div>
            <div class="merchandise"><img src="https://picsum.pictures/id/870/200/300?grayscale&blur=2" /></div>
            <div class="merchandise"><img src="https://picsum.pictures/id/870/200/300?grayscale&blur=2" /></div>
        </div>
    </physique>
</html>

Step 3: Create a structure file within the
app/code/Webkul/CustomSlickSlider/view/frontend/structure
listing to set the customslickslider.js and customslickslider.phtml information in place. In our instance, we’ve configured the slider within the default.xml file since we’re displaying it on the homepage. You will need to insert the next code within the web page structure file in case you want to add the slider to another web page.

<?xml model="1.0"?> 
<web page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" structure="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Format/and so forth/page_configuration.xsd"> 
<head>
    <script src="Webkul_CustomSlickSlider::js/customslickslider.js" />
</head>
<physique> 
    <referenceBlock identify="content material"> 
        <block class="MagentoFrameworkViewElementTemplate" identify="customized.slider" template="Webkul_CustomSlickSlider::customslickslider.phtml" /> 
    </referenceBlock> 
</physique> 
</web page>

Step 4: Create the customslickslider.js file and add the next code within the app/code/Webkul/CustomSlickSlider/view/frontend/internet/js listing.

require(['jquery', 'jquery/ui', 'slick'], operate($) {
    $(doc).prepared(operate() {
        $(".slick-slider").slick({
            dots: true,
            infinite: false,
            slidesToShow: 4,
            slidesToScroll: 1
        });
    });
});

Step 5: Within the requireJS configuration file positioned at app/code/Webkul/CustomSlickSlider/view/frontend/requirejs-config.js, you need to lastly embody the customslickslider.js path.

var config = {
    paths: {
        slick: 'Webkul_CustomSlickSlider/js/customslickslider'
    },
    shim: {
        slick: {
            deps: ['jquery']
        }
    }
};

Outcome:

Screenshot-from-2022-11-07-10-35-07

That’s all you could do. I hope this helps.

Reference: https://developer.adobe.com/commerce/frontend-core/javascript/sources/

You too can examine our different js blogs: https://webkul.com/weblog/class/javascript/

author-thumb


Kukil Bora
1 Badges

7 November 2022



Source_link

READ ALSO

Google outlines 4 rules for accountable AI

Guarantees in JavaScript – Webkul Weblog

Related Posts

Google outlines 4 rules for accountable AI
Software

Google outlines 4 rules for accountable AI

March 29, 2023
Guarantees in JavaScript – Webkul Weblog
Software

Guarantees in JavaScript – Webkul Weblog

March 29, 2023
Monitor Occasions and Operate Calls through Console
Software

The best way to Block a Vary of IP Addresses

March 29, 2023
Taron Egerton slots Tetris story into place in new biopic
Software

Taron Egerton slots Tetris story into place in new biopic

March 28, 2023
ChatGPT’s assist and steerage for fixing leetcode/hacker-rank questions
Software

ChatGPT’s assist and steerage for fixing leetcode/hacker-rank questions

March 28, 2023
an approachable strategy to begin prototyping and constructing generative AI purposes
Software

an approachable strategy to begin prototyping and constructing generative AI purposes

March 28, 2023
Next Post
A Temporary Introduction to BERT

A Temporary Introduction to BERT

POPULAR NEWS

AMD Zen 4 Ryzen 7000 Specs, Launch Date, Benchmarks, Value Listings

October 1, 2022
Only5mins! – Europe’s hottest warmth pump markets – pv journal Worldwide

Only5mins! – Europe’s hottest warmth pump markets – pv journal Worldwide

February 10, 2023
Magento IOS App Builder – Webkul Weblog

Magento IOS App Builder – Webkul Weblog

September 29, 2022
XR-based metaverse platform for multi-user collaborations

XR-based metaverse platform for multi-user collaborations

October 21, 2022
Learn how to Cross Customized Information in Checkout in Magento 2

Learn how to Cross Customized Information in Checkout in Magento 2

February 24, 2023

EDITOR'S PICK

LDNIO 65W USB Energy Supply Charging Station with LCD Assessment – USB energy meter built-in

LDNIO 65W USB Energy Supply Charging Station with LCD Assessment – USB energy meter built-in

March 11, 2023
See the gorgeous award profitable images from the Astronomy Photog

See the gorgeous award profitable images from the Astronomy Photog

October 3, 2022

Photo voltaic and Rockets in Maine – A Match Made within the Heavens

October 19, 2022
A testbed to evaluate the bodily reasoning abilities of AI brokers

A testbed to evaluate the bodily reasoning abilities of AI brokers

February 14, 2023

Insta Citizen

Welcome to Insta Citizen The goal of Insta Citizen is to give you the absolute best news sources for any topic! Our topics are carefully curated and constantly updated as we know the web moves fast so we try to as well.

Categories

  • Artificial Intelligence
  • Computers
  • Gadgets
  • Software
  • Solar Energy
  • Technology

Recent Posts

  • Twitter pronounces new API pricing, together with a restricted free tier for bots
  • Fearing “lack of management,” AI critics name for 6-month pause in AI growth
  • A Suggestion System For Educational Analysis (And Different Information Sorts)! | by Benjamin McCloskey | Mar, 2023
  • Google outlines 4 rules for accountable AI
  • Home
  • About Us
  • Contact Us
  • DMCA
  • Sitemap
  • Privacy Policy

Copyright © 2022 Instacitizen.com | All Rights Reserved.

No Result
View All Result
  • Home
  • Technology
  • Computers
  • Gadgets
  • Software
  • Solar Energy
  • Artificial Intelligence

Copyright © 2022 Instacitizen.com | All Rights Reserved.

What Are Cookies
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT