Code
Simple Bootstrap Shortcodes Plugin
For any of you Roots developers out there, or really anyone who has a WordPress theme that uses Bootstrap 3, you might find this little plugin that I created helpful: https://github.com/JulienMelissas/simple-bs-shortcodes. It’s meant to be a starter plugin that you can modify as much as you need to get it to do what you want.
Basically, it has the option for a [columns]
shortcode to wrap any of the [half]
, [one-third]
or [two-thirds]
shortcodes in. Those shortcodes will render the content inside of them in divs with Bootstrap classes applied to them.
If you have a need for a more advanced Bootstrap shortcodes plugin, this isn’t it, but it’s good if you’re developing a theme using Roots and/or Bootstrap, and want some simple shortcodes without all the bloat.
Julien Melissas
https://www.julienmelissas.comI'm a Web Developer, Foodie, and Music Lover/Maker living in Asheville, NC. I make things on the web at Craftpeak & JM Labs.