Skip to content
Available for new work
Pages in Hero Banner Slider

GuideFree

The Hero Banner and Banner Slider widgets for Magento 2

Place a banner or slider on a CMS page, a category description, a static block or in layout XML. Every widget parameter explained, with screenshots.

Updated 16 November 2026Back to the package page

There are two widgets, Hero Banner (CoullWorks) and Banner Slider (CoullWorks). They are the classic way to place banners, and they work anywhere Magento lets you insert a widget. Page Builder has its own content types for the same banners.

Both widgets render nothing when Enable is No in the configuration.

Choosing a widget#

In Content, Elements, Widgets press Add Widget, or press Insert Widget in any editor. The Type list holds both.

The Insert Widget picker listing Hero Banner (CoullWorks) and Banner Slider (CoullWorks)

The widget picker in the editor. Both are labelled (CoullWorks) so they stand apart from other modules.

The Add Widget form with the type Hero Banner (CoullWorks)

Add Widget with the Hero Banner type chosen.

The Add Widget form with the type Banner Slider (CoullWorks)

Add Widget with the Banner Slider type chosen.

Hero Banner options#

The Hero Banner widget options: Banner Id, Full Width, Parallax, Full Page Height

The four options of the Hero Banner widget.

Pick the banner to show. The list shows every banner by name, including disabled ones. A disabled banner shows nothing on the page.

The Banner Id select

Banner Id.

The Banner Id list open, showing banner names

The list is filled with your banners, by name.

Full Width#

Yes breaks the banner out of the page column to the full width of the screen. The overlay text stays inside a 1280 pixel container.

Parallax#

Yes makes the image move slower than the page as it scrolls. A parallax banner is 500 pixels high.

A parallax hero banner scrolled partway up the page

Scrolled: the image has shifted against the text.

Full Page Height#

Yes makes the banner at least as tall as the screen.

The Banner Slider widget options: Slider Id, Full Width, Full Page Height, Show Tabs under banner, Parallax

The five options of the Banner Slider widget.

A slider with arrows on a Luma page

A slider without tabs shows left and right arrows. The screenshot is of a page with two sliders: the tabs strip of the first is at the top, the slider below it has arrows.

The arrows sit inside the slider on a dark round button with a white arrow, 40 pixels wide (36 on a phone), so they read on a light page and over dark photographs. They have a hover state and a visible focus ring for keyboard users.

Slider Id#

Pick the slider. The list shows your sliders by name.

The Slider Id select

Slider Id.

The Slider Id list open, showing slider names

The list of sliders.

Full Width#

As for the hero: break out to the full screen width.

Full Page Height#

As for the hero: at least as tall as the screen.

Show Tabs under banner#

Yes adds a strip under the slider with each slide's banner name. Clicking a tab shows that slide. With tabs on, the arrows are turned off.

A slider with a tabs strip under it, showing three banner names

The tabs strip under the slider at desktop width.

The tabs strip at phone width

At 390 pixels wide.

Parallax#

Yes applies the parallax effect to every slide's image. Each slide is 500 pixels high.

Place a widget on a CMS page#

  1. Go to Content, Pages, edit the page and open Content.
  2. In the editor press Insert Widget.
  3. Choose Hero Banner (CoullWorks) or Banner Slider (CoullWorks), set the options and press Insert Widget.
  4. Save the page.

Place a widget in a category description#

Open Catalog, Categories, choose the category, open Content and use Insert Widget in the Description editor in the same way. Turn on Display Mode that shows the description, and the banner appears above the products.

Place a widget as a layout widget#

In Content, Elements, Widgets, press Add Widget, choose the type and your theme, then on Storefront Properties give it a title and store views and add a Layout Update. On Widget Options set the options.

The widget directive and layout XML#

The editor inserts a directive you can also type in a static block or CMS page:

text
{{widget type="CoullWorks\BannerSlider\Block\Widget\HeroBanner" banner_id="1" full_width="1" is_parallax="0" full_height="0"}}
{{widget type="CoullWorks\BannerSlider\Block\Widget\BannerSlider" slider_id="1" show_tabs="1"}}

In layout XML use a <block class="CoullWorks\BannerSlider\Block\Widget\BannerSlider"> with the same parameters as <argument> entries. Yes is 1 and No is 0.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.