Download the PHP package bootscore/bs-swiper without Composer
On this page you can find all versions of the php package bootscore/bs-swiper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bootscore/bs-swiper
More information about bootscore/bs-swiper
Files in bootscore/bs-swiper
Package bs-swiper
Short Description Swiper slider for Bootscore
License MIT
Homepage https://bootscore.me/
Informations about the package bs-swiper
bs Swiper
WordPress plugin to show posts, pages, custom post types or WooCommerce products in a swiper.js carousel in Bootscore theme.
- Demo and documentation: https://bootscore.me/documentation/bs-swiper/
Installation
- Download latest release bs-swiper.zip.
- In your admin panel, go to Plugins > and click the Add New button.
- Click Upload Plugin and Choose File, then select the Plugin's .zip file. Click Install Now.
- Click Activate to use your new Plugin right away.
Usage
Select template you want to use by replacing bs-swiper-*
placeholder in shortcode examples.
bs-swiper-card
shows items in 4 (xxl), 3 (lg), 2 (md) and 1 (sm) column cards.bs-swiper-card-autoplay
shows items in 4 (xxl), 3 (lg), 2 (md) and 1 (sm) column cards with autoplay.bs-swiper-hero
shows items in a hero slider with auto-slide effect. Items must have a featured-image.bs-swiper-hero-fade
shows items in a hero slider with auto-fade effect. Items must have a featured-image.bs-swiper-card-product
shows only WooCommerce products in 4 (xxl), 3 (lg), 2 (md) and 1 (sm) column cards.
Posts
Shortcode to show posts by category
Options
category=""
- category-slug, multiple categories separated by commaorder=""
- ASC or DESCorderby=""
- date, title, or randposts=""
- amount of posts to showexcerpt="false"
- hide excerpttags="false"
- hide tagscategories="false"
- hide categories
Shortcode to show posts by tags
Options
tax=""
- taxonomy (post_tag)terms=""
- tags-slug, multiple terms separated by commaorder=""
- ASC or DESCorderby=""
- date, title, or randposts=""
- amount of posts to showexcerpt="false"
- hide excerpttags="false"
- hide tagscategories="false"
- hide categories
Shortcode to show single posts by id
Options
id=""
- id of post, multiple ids separated by commaexcerpt="false"
- hide excerpttags="false"
- hide tagscategories="false"
- hide categories
Pages
Shortcode to show child-pages by parent-page id
Showing child-pages in parent-page is very useful to avoid empty parent-pages.
Options
post_parent=""
- id of parent pageorder=""
- ASC or DESCorderby=""
- date, title, or randposts=""
- amount of pages to showexcerpt="false"
- hide excerpt
Shortcode to show single pages by id
Options
id=""
- id of page, multiple ids separated by commaexcerpt="false"
- hide excerpt
Custom Post Types
Shortcode to show custom-post-types by terms
Options:
type=""
- type of custom-post-typetax=""
- taxonomyterms=""
- terms-slug, multiple terms separated by commaorder=""
- ASC or DESCorderby=""
- date, title, or randposts=""
- amount of custom post types to showexcerpt="false"
- hide excerpt
Shortcode to show single custom-post-types by id
Options
id=""
- id of custom-post-type, multiple ids separated by commaexcerpt="false"
- hide excerpt
WooCommerce Products
Shortcode to show products
Options:
category="cars, boats"
- Category slug, multiple categories separated by comma. Will pull products matching these categories (Default:''
)id="1, 2, 3"
- id of product(s), multiple ids separated by comma. Will show products matching these ids (Default:''
)brand="brand1, brand2"
- Will pull products matching these brands (Default:''
)posts="12"
- Specify how many products will be shown (Default:-1
)orderby="date"
-date
,title
orrand
. Specify how products will be ordered by (Default:date
)order="DESC"
- Specify if products will be orderedASC
orDESC
(Default:DESC
)featured="true"
- Will pull featured products (Default:false
)outofstock="false"
- Will hide out of stock products (Default:true
)onsale="true"
- Will show only onsale products (Default:''
)showhidden="true"
Shows products hidden from catalog (Default:false
)
Related posts
Bootscore v5.3.1 added a hook to all single-*.php
's:
bs Swiper hooks related posts there showing the latest 12 posts from the same category. This means that the category should have at least 4 posts to show the related posts correctly.
Related posts can be removed by adding a filter to child's functions.php
:
Or by a single line of CSS:
Overriding templates via theme
Template files can be found within the /bs-swiper/templates/
plugin directory.
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /bs-swiper/
keeping the same file structure but removing the /templates/
subdirectory. Path must be /your-theme/bs-swiper/[file].php
.
The copied file will now override the bs Swiper template file. Change cards, classes or HTML as you want.
Templates that can be overridden
related-posts.php
sc-swiper-card.php
sc-swiper-card-autoplay.php
sc-swiper-card-product.php
sc-swiper-hero.php
sc-swiper-hero-fade.php
License & Credits
- bs Swiper, MIT License https://github.com/bootscore/bs-swiper/blob/main/LICENSE
- swiper.js, nolimits4web, MIT License https://github.com/nolimits4web/swiper/blob/master/LICENSE
- Plugin Update Checker, YahnisElsts, MIT License https://github.com/YahnisElsts/plugin-update-checker/blob/master/license.txt