WP Bootstrap Navwalker
Twitter Bootstrap layout support with WordPress Galley.
by Edward McIntyre - @twittem, Brandon Hubbard · github.com/wp-bootstrap/wp-bootstrap-gallery · website
★ 9stars
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wp-bootstrap/wp-bootstrap-gallery/archive/refs/heads/master.zipDeclares an update source (https://github.com/wp-bootstrap/wp-bootstrap-gallery), so updates arrive through the plugin's own updater.
From the readme
WP Bootstrap Gallery
A custom WordPress gallery for dynamic thumbnail layout using Twitter Bootstrap 2 (https://github.com/twitter/bootstrap/) and the WordPress built in gallery manager. Once the script is setup it will alter the WordPress gallery shortcode to create a unique thumbnail layout based on the number of gallery items.
This is a utility class is intended to format your WordPress gallery shortcode to use Twitter Bootstrap thumbnail layouts, and does not include the Twitter Bootstrap files You will have to install include them manually.
Installation
Place wpbootstrapgallery.php in your Wordpress theme folder /wp-content/your-theme/
Open your WordPress themes functions.php file /wp-content/your-theme/functions.php and add the following code:
Useage
Simply create a WordPress post gallery as you usually would and the script will do the rest.
Supported Layouts
+ 1 Image - One full width image
+ 2 Images - Two half width images
+ 3 Images - One 3/4 width image with two 1/4 width images to the right
+ 4 Images - One full width image with three 1/3 width images underneath
+ 5 Images - Two half width images with four 1/4 width images underneath
+ 6 Images - One 2/3 width