WP Manifestindependent plugin directory
manifest / editor / up-bk-swiper-slider

UP BK Swiper Slider

Drop-in replacement for UP BK Slick Slider, using Swiper under the hood with compatible block attributes.

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/nicolascaen/up-bk-swiper-slider/archive/refs/heads/Master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

UP BK Swiper Slider (drop-in)

Version: 0.2.2

Drop-in replacement for UP BK Slick Slider using Swiper v11. Keeps the same block name up-bk/slick-slider for compatibility.

Installation

  • Place the plugin in wp-content/plugins/up-bk-swiper-slider
  • npm install
  • npm run build
  • Activate the plugin in WordPress

Block registration

  • Block name: up-bk/slick-slider
  • Assets loaded from build/index.js and build/index.css
  • Server-side rendering file copied to build/render.php on build

Usage

Insert the block "UP Swiper Slider (drop-in)" and configure:

Images source

  • Custom Gallery (media picker)
  • Post Images (auto from current post attachments)
  • Meta (IDs CSV)

Core settings

  • Slides to show/scroll, gap, speed, loop, fade, center, adaptive height
  • Autoplay + delay
  • Dots (pagination)
  • Fixed height (CSS var --slide-height)

Navigation

  • arrows (on/off)
  • arrowType: type1, type2, or custom
  • insertArrows (default true):
    • If true and arrowType ≠ custom: renders Swiper default buttons .swiper-button-prev/.swiper-button-next
    • If true and arrowType = custom: renders helper elements with your classes
    • If false: you must provide your own elements in the DOM
  • customPrevClass / customNextClass: when arrowType = custom, provide classes or selectors (e.g. .my-prev, .my-next). These are used as prevEl / nextEl for Swiper.

Responsive

  • Toggle responsive and tune Tablet/Mobile breakpoint options (slides to show/scroll, autoplay, dots, arrows, speed, fade, gap, fixed height, object-fit).

Styling (CSS variables)

Navigation styles use CSS variables applied on the wrapper:

  • --nav-icon-size (default 24px)
  • --nav-radius (default 50%)
  • --nav-padding (default 0.5em)
  • --nav-gap (default 1em)

These apply to:

  • Swiper default buttons: .swiper-button-prev/.swiper-button-next
  • Custom helpers: .swiper-arrow.is-prev/.swiper-arrow.is-next (and your custom classes)

Example theme CSS:

.gros-btn-right, .gros-btn-left {
  display: inline-flex;
  width: 3rem; height: 3rem;
  background: #2B231F; color: #fff;
  align-items: center; justify-content: center;
}

Build

  • npm run build builds assets and copies src/render.php to build/
    • Editor styles: build/index.css
    • Front styles: build/style-index.css

Notes

  • Do not activate the original up-bk-slick-slider at the same time (same block name).
  • Swiper modules: Navigation, Pagination, EffectFade, Autoplay imported from swiper/modules.

Changelog

0.2.2

  • Fix build errors by switching SCSS imports to Swiper exported entrypoints (swiper/css, swiper/css/*).
  • Ensure front layout by bundling Swiper CSS in front stylesheet and confirming style asset mapping.
  • Minor JS init fixes: use .wp-block-up-bk-swiper-slider .swiper and scope navigation selectors to the current slider instance.

0.2.1

  • Add navigation color controls: navBg, navColor, navBgHover, navColorHover (editor + front).
  • Ensure navigation sizing variables apply (icon size, gap, radius, padding) in editor and front.
  • Map --nav-icon-size to Swiper variable --swiper-navigation-size.
  • Align navigation behavior in editor/front: same classes and data-arrow-position support.
  • Add hover styles for default and custom arrows.
  • Fix asset mapping: style → build/style-index.css, editorStyle → build/index.css.
  • Import Swiper CSS in front bundle via @import "swiper/css" and related module CSS.
  • Scope navigation selectors to the current slider instance in JS to avoid cross-binding.

0.2.0

  • Introduce insertArrows option to auto-render arrows or let the theme render them.
  • Add custom arrow type with customPrevClass and customNextClass selectors.
  • Simplify render and styles to Swiper-only classes; remove Slick references.