
內容簡介
這是一個極簡、無瑕的響應式、易用的圖片輪播/幻燈片外掛程式。
已經有很多功能強大、設置完善的圖片輪播外掛程式了。它們運作良好,具備很多功能,有些甚至在付費版提供更多功能。
我不是說它們沒有存在的價值,而是有時過於冗長。
這個外掛程式性質是提供給那些只想在網站上以連結的形式循環顯示圖片的人使用。
使用方式
No BS Image Slider 的運作方式是利用 WordPress 已有的內容,通過建立新的自定義文章類型和分類法。
首先,通過使用「Image Slide」類型來創建您的輪播圖片。請確保添加一個「特色圖片」,並在連結字段中提供一個連結。填寫簡介以提供圖片說明。
通過添加「Image Slider」分類法來創建輪播圖片的分類。這樣可讓一張圖片在多個輪播中使用。
使用 No BS Image Slider widget 來進行輪播設置,以及每張圖片的顯示時間。
Planetjon 部落格提供了一篇非常好的外掛程式介紹。
Shortcode
要手動插入輪播,請使用簡碼 [nbis]。
您至少需要提供輪播標識。
簡碼屬性為
slider=”slug”
duration=”number”(秒數,默認為 5)
transition=”number”(秒數,默認為 1.25)
showcounter=”yes|no”(默認為「no」)
lazy=”yes|no”(默認為「no」)
Widget
提供了一個小工具,可公開上述選項。
外掛標籤
開發者團隊
原文外掛簡介
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.
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.
Create a slider by adding an Image Slider taxonomy. This allows a slide to be in multiple sliders.
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.
