BS4WP Component
This is a lightweight plugin to display carousel in any screen. Just install the plugin and you will get options of this plugin in Settings > General > Bootstrap 4 Component Settings Section If you are running a theme which is built with Bootstrap4 then you don’t need to change the settings. But if
About this tool.
This is a lightweight plugin to display carousel in any screen.
Just install the plugin and you will get options of this plugin in Settings > General > Bootstrap 4 Component Settings Section
If you are running a theme which is built with Bootstrap4 then you don’t need to change the settings. But if your theme is not built with Bootstrap4 and you want to use Bootstrap4 Carousel you have to change it to “Yes”.
Usage
- 01First Upload the images, which you want to show as slides
- 02Each image has unique id copy that id and set it in [bs4slide id="IMAGE_UNIQUE_ID"]
Basic Slider [No dots, No arrows, No Caption]
[bs4slider id="test_slider"] [bs4slide id="26" active="active" alt="first" /] [bs4slide id="26" alt="second" /] [bs4slide id="26" alt="third" /] [/bs4slider]
Slider With Arrow [No dots, No Caption]
[bs4slider id="test_slider" arrow="yes"] [bs4slide id="26" active="active" alt="first" /] [bs4slide id="26" alt="second" /] [bs4slide id="26" alt="third" /] [/bs4slider]
Slider With Arrow and Dots [No Caption]
[bs4slider id="test_slider" arrow="yes" dot="2"] // If 3 images then dot 2 it counts from 0 [bs4slide id="26" active="active" alt="first" /] [bs4slide id="26" alt="second" /] [bs4slide id="26" alt="third" /] [/bs4slider]
Slider With Arrow, Dots and Caption
[bs4slider id="test_slider" arrow="yes" dot="2"] [bs4slide id="26" active="active" alt="first" cap_title="First slide label" cap_subtitle="Nulla vitae elit libero, a pharetra augue mollis interdum." /] [bs4slide id="26" alt="second" cap_title="First slide label" cap_subtitle="Nulla vitae elit libero, a pharetra augue mollis interdum." /] [/bs4slider]
Usage in PHP Code
<?php echo do_shortcode(' [bs4slider id="test_slider"] [bs4slide id="26" active="active" alt="first" /] [bs4slide id="26" alt="second" /] [bs4slide id="26" alt="third" /] [/bs4slider] '); ?>
N.B. Don’t press enter after each slides[bs4slide] otherwise the shortcode will be broken.
More Attributes
[bs4slider]
- 03[bs4slider class=”YOUR_OWN_CLASS”] if you want
- 04[bs4slider id=”YOUR_OWN_ID”] for making unique each slider
- 05[bs4slider arrow=”yes/no”] by default it is “no”
- 06[bs4slider left_icon=”fas fa-angle-left”] If you are using Fontawesom
- 07[bs4slider right_icon=”fas fa-angle-right”] If you are using Fontawesom