kowal.info

PageBuilder Slider Fix

Composer kowal/module-pagebuildersliderfix · Version 1.0.13

Product page

PageBuilder Slider Fix — kowal.co

Description

Adjusts Page Builder slider proportions and selects a slide background for the current viewport width.

For whom

For editors publishing landscape desktop banners and portrait artwork for phones.

Features

  • Separate desktop and mobile aspect ratios.
  • Configurable viewport breakpoint.
  • Mobile background selection when the slide has a mobile image.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-pagebuildersliderfix
bin/magento module:enable Kowal_PageBuilderSliderFix
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Assign desktop and mobile artwork to the slide in Page Builder.
  2. Open PageBuilder Slider Fix → Slider Settings and set width and height for each format. The defaults are 1920 × 800 and 768 × 976.
  3. Set Mobile Breakpoint in pixels and save. The default is 768 px.

Requirements / notes

Width and height pairs define aspect ratios. The package requires kowal/base. The repository includes the separate Hyvä adapter kowal/module-pagebuildersliderfix-hyva.

FAQ

What appears on a phone if the slide has no mobile image?

The script uses the desktop background. Supply mobile artwork when the important part of the banner needs a different crop.

Verify the installation

bin/magento module:status Kowal_PageBuilderSliderFix

With the default breakpoint, open a slide with two visibly different images. Compare the page at 768 and 769 px. Check both the selected artwork and the slider proportions.

Components included in PageBuilder Slider Fix