Hello, I am kind of newbie to wordpress and I can’t live without roots any more
I was looking at Bootstrap Lightbox (http://jbutz.github.io/bootstrap-lightbox/) plugin and i think it’s very nice for the project I’m in, is there a way to intregrate it to Roots?
How are you planing to use it? if the plan includes something like a lightbox gallery it requires hacking the gallery short code included in roots.
If all you need is to use it in your contents, just include bootstrap-lightbox.js in the /roots/assets/js/vendor folder and don’t forget to include it in /roots/lib/scripts.php by adding something like this:
I try to see the lightbox in action in a fresh installation of roots, now I can see what’s going on.
Here are some new thoughts on this.
First: stop editing scripts.php as suggested early. just drop the library on: /roots/assets/js/plugins and run the grunt command to get it available on your site.
Second: because the new CSS code for the hide class on BS3 you don’t see the lightbox content, so stop adding it to the lightbox as suggested, It should looks now:
Note the display: none; added to the default class definition from bootstrap-lightbox.css v0.6.1. The JavaScript will change it when the lightbox get triggered.
This is just a hacky fix, the best one would be to modify the base LESS file in order to support BS3.