Open paaljoachim opened 10 years ago
There is a WordPress plugin that uses Magnific-Popup script. Easy to add to any page or post - just insert a shortcode.
Andora Lighbox: https://wordpress.org/plugins/andora-lightbox/
Documentation and live previews: http://abcfolio.com/help/andora-lightbox/
Hi
I have been testing out Fluidbox and got that to work. But Magnific seems even better and I would like to get it to work with WordPress.
With Fluidbox I just needed one file to get it working and that was the CSS stylesheet with a few important tags.
Inside the functions file:
//* Enqueue Fluidbox add_action( 'wp_enqueue_scripts', 'enqueue_fluidbox' ); function enqueue_fluidbox() {
}
In addition I added the code from this page into the functions file: http://wpsnipp.com/index.php/functions-php/add-rel-lightbox-to-all-images-embedded-in-a-post/
With the above code and the fluidbox.css it worked fine with all the images of the site.
Is there a way to only add code to the functions file like I did for fluidbox and the extra files to get it working? It would be nice to not have to add additional code to the header and footer.