Skip to content
Marketing & Social Proof Extensions

Banner Slider for Magento 2

A free Magento 2 banner slider for promotional banners. Each slide has its own desktop, tablet and mobile image, an optional HTML overlay, a link and active dates. Place a slider anywhere with a widget, on Hyvä or Luma.

  • Free
  • Themes listed: Hyvä + Luma
Free $0.00, in stock
Check requirementsSee the versions and themes listed for this package. Details Ask about setupInclude the package name and your Magento and PHP versions. Ask
$0.00
In stock
SKU
panth-banner-slider
Links
composer require mage2kishan/module-banner-slider
SKU
panth-banner-slider
  • Package requirementsRead the source documentation
  • Developer profileView Upwork profile
  • Themes listedHyvä + Luma
  • PHP versions listed8.1, 8.2, 8.3, 8.4
  • Installation questionsDiscuss your store setup

What it does for your store

The main features, as listed in the module documentation.

  • Sliders and slides

    Create any number of sliders. Each slide belongs to one slider and has a sort order, an active switch and a store view.

  • Three images per slide

    Upload desktop, tablet and mobile images. A missing size falls back to the next larger one, served with a picture element.

  • HTML overlay and link

    Add headings, text and buttons over the image in the WYSIWYG editor, and link the slide in the same or a new tab.

  • Fade or slide

    Each slider sets its transition, autoplay and speed, loop, arrows, dots and pause on hover.

  • Active dates

    Set Active From and Active To per slide in the store timezone. Either date can stay empty.

  • Hyvä and Luma

    An Alpine.js template on Hyvä and a small RequireJS component on Luma, picked from the active theme.

Installation

Example commands from the Magento root. Follow the package instructions and your staging and deployment process.

  1. 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
  2. 2Install on stagingReview Composer changes and follow the package instructions.
  3. 3Configure and verifyUse the documented settings and test the affected features.
magento-root
$ composer require mage2kishan/module-banner-slider
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile
$ bin/magento setup:static-content:deploy -f
$ bin/magento cache:clean

Listed requirements

These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.

Magento versions listed2.4.6, 2.4.7, 2.4.8
PHP versions listed8.1, 8.2, 8.3, 8.4
Themes listedHyvä, Luma
Composer packagemage2kishan/module-banner-slider

Read package requirements and license

Documentation

Product details and setup guidance. Check the package repository for release-specific instructions.

Promotional banner sliders managed in the admin

Banner Slider adds sliders and slides as two kinds of records in the Magento 2 admin. A slider holds the playback settings. Its slides hold the images, an optional HTML overlay, a link, a sort order and a date range. You can create as many sliders as you need and place each one by its identifier: with the Banner Slider widget, a {{widget}} directive in a CMS page or block, or a block in layout XML.

The module adds two database tables, two admin grids with edit forms and one widget. It does not change existing Magento behaviour and has no section under Stores > Configuration. Sliders and banners are managed under Panth Infotech > Banner Slider.

Slides

  • Desktop, tablet and mobile images (jpg, jpeg, png, gif or webp, up to 10 MB), rendered with a picture element. Tablet falls back to desktop, and mobile falls back to tablet, then desktop.
  • Content Overlay HTML in the classic WYSIWYG editor, with CMS directives such as {{media}} and {{store}}.
  • Link URL with a same window or new tab target. Only relative paths and http, https, mailto and tel links are saved.
  • Image alt text, a sort order, an active switch and a store view.
  • Active From and Active To dates, checked against the current date in the store timezone.

Slider settings

Each slider has a transition effect (Fade by default, or Slide), autoplay (on, every 5000 ms), a transition speed of 600 ms, infinite loop, arrows, pagination dots and pause on hover. Store view scoping works on sliders and slides: a slider saved for one store view overrides an All Store Views slider with the same identifier.

On the storefront

Visitors can use arrows, dots, touch swipe and the left and right arrow keys while the slider has focus. When autoplay is on, a Pause slideshow button is shown, and visitors who prefer reduced motion get a paused slideshow without animation. Controls are 44 by 44 pixel targets, and the slider is announced as a carousel with "1 of 3" slide groups.

The first slide image loads eagerly with fetchpriority="high". Later slides lazy-load shortly after the page loads, and the slider height is reserved in CSS so images do not shift the layout. Heights, overlay colour and radius are CSS custom properties. Saving a slider or slide refreshes the cached pages that show it.

Themes

Two templates ship with the module: an Alpine.js template with inline CSS for Hyvä and a small RequireJS component for Luma. The template is picked from the active theme through Panth Core. No Slick or Owl Carousel library is loaded.

Sample data

An Install Sample Data button on the Manage Sliders grid creates five example sliders with slides and images. Existing identifiers are skipped.

Requirements

  • Magento Open Source or Adobe Commerce 2.4.4 to 2.4.8.
  • PHP 8.1, 8.2, 8.3 or 8.4.
  • mage2kishan/module-core 1.0.17 or later in the 1.x line, installed by Composer.
  • Hyvä or Luma storefront.

Free and open source under the MIT License.

Developer notes

  • Module Panth_BannerSlider, PHP namespace Panth\BannerSlider. It loads after Magento_Cms, Magento_Store, Magento_Widget, Magento_Backend and Panth_Core.
  • The widget block is Block\Widget\BannerSlider, with the parameter identifier.
  • Helper\Data provides getSliderByIdentifier(), getSlidesByIdentifier(), getSlidesBySliderId(), getImageUrl() and getResponsiveImages().
  • Model\Slider has the event prefix panth_banner_slider and the cache identities panth_banner_slider and panth_banner_slider_<id>. Model\Slide has the event prefix panth_banner_slide and the cache identities panth_banner_slide_<id> and panth_banner_slider_<slider_id>.
  • Uploaded images go through the virtual type Panth\BannerSlider\ImageUploader, with the media base path bannerslider.
  • etc/frontend/di.xml registers the module with Panth\Core\ViewModel\ThemeConfig. etc/theme-config.json holds the default CSS variable values.
  • Admin route panth_bannerslider. sampleData/install accepts POST only.
  • ACL resources: Panth_BannerSlider::slider and Panth_BannerSlider::slide, under Panth_Core::panth_extensions.
  • Database tables: panth_banner_slider (unique on identifier and store_id) and panth_banner_slide (three separate indexes, on slider_id, is_active and sort_order).
  • No plugins, observers, cron jobs, console commands or web API routes are declared.
More information
Module Category Theme & UI
Best For All Sizes

Changelog

  1. 1.0.19, 2026-10-30

    • Released under the MIT License: this module is free and open-source software.
  2. 1.0.18, 2026-10-05

    • Slider and banner edit forms offer "All Store Views" in Store View and show the saved value, so saving a record without changes no longer moves it to Default Store View. The Manage Banners grid can show and filter "All Store Views".
    • Keyword search in the Manage Sliders grid (title, identifier) and Manage Banners grid (title, alt text, link URL) filters the rows.
    • The Manage Sliders grid has a mass "Delete" action and a "Store View" column; the Manage Banners grid shows "Active From" and "Active To".
    • The slider identifier must start with a letter and use letters, digits, "_", "-" or "/"; a duplicate identifier for the same store view shows a clear message.
Full history on GitHub

FAQ

Can I have more than one banner slider on the same page?

Yes. Create as many sliders as you need and place each one with its own widget, CMS directive or layout block. Each slider keeps its own settings and slides, and the arrow keys only move the slider that has keyboard focus.

Does it work with Hyvä Theme?

Yes. The Hyvä template is an Alpine.js component with inline CSS and no jQuery. When the active theme is Hyvä, the module uses it in place of the Luma template automatically.

Does it work with the default Luma theme?

Yes. The Luma template uses a small RequireJS component from the module. No Slick, Owl Carousel or other carousel library is loaded.

Can I schedule slides for a promotion?

Yes. Each slide has Active From and Active To dates. A slide is shown only while the current date in the store timezone is inside that range, and either date can be left empty.

Can I display different slides per store view?

Yes. Sliders and slides each have a Store View setting: All Store Views or one store view. If a slider with the same identifier exists for both, the store view one is used on that store view.

Is the slider SEO friendly?

Slides are real images inside a picture element, with the alt text you enter or "Banner N" when it is empty, and a slide link is a normal anchor tag that crawlers can follow.

Does it affect Core Web Vitals / page speed?

The first slide image loads eagerly with fetchpriority="high" and later slides lazy-load shortly after the page loads. The slider height is reserved in CSS, so images do not shift the layout. Measure your own pages before and after.

Can I translate the admin labels?

Yes. Admin and storefront labels go through Magento's translation function, so they can be translated with a language pack or a theme CSV. The module does not ship translation files.

Can I customize the slider template?

Yes. Copy Panth_BannerSlider::widget/banner_slider.phtml (Luma) or Panth_BannerSlider::widget/banner_slider_hyva.phtml (Hyvä) into your theme under Panth_BannerSlider/templates/widget/ and edit the copy. Heights, overlay colour and radius can also be changed with CSS custom properties.

Do I need Panth Core?

Yes. mage2kishan/module-core is required and Composer installs it. It provides the Panth Infotech admin menu, theme detection and the upload file name check. It is free and MIT licensed, like this module.

Kishan Savaliya

Questions before you install?

Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.

Ask on WhatsApp