Dodatak nije testiran s zadnje 3 glavna izdanja WordPressa. Možda ga se više ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama WordPressa.

No BS Image Slider

Opis

This is an ultra-minimal no-frills responsive and accessible image carousel / slider.

There are many robust image slider plugins already. They work well and have a lot of features, some with even more features at the premium tier.
I’m not saying that they don’t have their place but that sometimes they are excessive.

This plugin is for someone who just wants to have linked images scroll by in a loop on their website.

How To Use

No BS Image Slider works by leveraging what WordPress already provides, by creating a new custom post type and taxonomy.

  1. To begin, create your slides by using the Image Slide type. Be sure to add a featured image, and provide a link in the link field. Captions can be supplied by filling out the exerpt.
  2. Create a slider by adding an Image Slider taxonomy. This allows a slide to be in multiple sliders.
  3. Use the No BS Image Slider widget to configure which slider you want displayed, and the duration of each slide.

A great rundown of the plugin is available on the Planetjon blog.

Shortcode

To manually insert a slider, use the shortcode [nbis].
You must provide at minimum the slider slug.

The shortcode attributes are

  • slider=”slug”
  • duration=”number” (seconds, default 5)
  • transition=”number” (seconds, default 1.25)
  • showcounter=”yes|no” (default no)
  • lazy=”yes|no” (default no)

Widget

A widget that exposes all of the above options is available.

ČPP

What makes this light-weight?

No BS Image Slider has minimal backend coding and zero external dependencies.
The slider is also optimized purely with CSS, no JavaScript is used.
The CSS weighs in at under 2 kilobytes, blowing away all of the major slider plugins by a mile.

How can I set the order of slides in a slider

While there are no admin options for this, it can be done by using custom CSS.
Sliders are ID’d with no-bs-image-slider-<slug> and slides are ID’d with nbis-slide-<slideId>.

An approach would be to style the slider scrollpane as Flexbox, and set the order on the slides.

#no-bs-image-slider-slug .scrollpane {
display: flex;
}
#no-bs-image-slider-slug .scrollpane #nbis-slide-1 {
order: 1;
}
#no-bs-image-slider-slug .scrollpane #nbis-slide-2 {
order: 0;
}

Recenzije

13. srpnja 2021. 1 odgovor
Being a minimalist, and needing a replacement for a slider plugin now abandoned, I found this plugin - and reading the description I thought "Wow, sounds great". And it is. After installing it (it's a small but non-trivial learning curve to use) I downloaded and unpacked the source. I could hardly believe my eyes! One PHP file, 8.665 bytes; and one CSS file, 1.429 bytes. That's IT. And btw it's really well written, the author is obviously a good, modern programmer. The sliders are custom 'tags', the slider images are custom posts (I think). Strange is, that you have to supply a 'Featured Image' and an image link for each slide, then it works - slides shown in the order of their creation. Just change the creation date to modify the order (untried). One thing I found not so obvious in the UI at first: On hover over the slider then a 'paused' icon is displayed top left and the slider is indeed paused. As soon as the mouse goes away, the icon disappears and the animation continues. But at first I thought the paused icon was a button to click to cause a pause, and since it did not I thought the plugin was broken. Silly me, but perhaps there is a way to do it even more clearly? It is now live on the homepage of a german apothecary. BTW minimalists might want to pair this with WP Featherlight as a lightbox. 5 stars really well earned - thanks Jonathan!
Pročitajte 1 recenziju

Suradnici i Programeri

“No BS Image Slider” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

Prevedite “No BS Image Slider” na svoj jezik.

Zainteresirani ste za razvoj?

Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.

Dnevnik promjena

1.8

  • Transition duration parameter added.