Wraps the content of a WordPress media gallery in a Twitter's Bootstrap grid. Makes your views full responsive. No changes to your theme or other plugins needed.
Download the latest version as .zip file. Upload the .zip file to your Wordpress plugin directory (wp-content/plugin) and use the activate function in your dashboard. ( Plugins > installed plugins ).
Choose the number of columns in the Gallery Page. This will be result in the grids shown below:
/* the grid display */ /* /* | columns | mobile | tablet | desktop |per page | ----------------------------------------------------|-----------| | 1 | 1 | 1 | 1 | 10 | |---------------------------------------------------|-----------| | 2 | 1 | 2 | 2 | 10 | |---------------------------------------------------|-----------| | 3 | 1 | 1 | 3 | 9 | |---------------------------------------------------|-----------| | 3(1) | 1 | 2 | 3 | 12 | |---------------------------------------------------|-----------| | 4 | 1 | 2 | 4 | 12 | |---------------------------------------------------|-----------| | 5 | n/a | n/a | n/a | n/a | |---------------------------------------------------|-----------| | 6 | 2 | 4 | 6 | 12 | |---------------------------------------------------|-----------| | >=6 | n/a | n/a | n/a | n/a | |---------------------------------------------------------------| * * */
The plugin overwrite the [gallery] shortcodes of WordPress.
- Wordpress tested with >= 3.6
- Twitter's Bootstrap >= 3.0.0
We are always happy to help you. If you have any question regarding this code. Send us a message or contact us on twitter @JamedoWebsites.
1.0
- First version