Facebook Album
[resolved] De-Activate or Change Lightbox JS? (4 posts)

  1. Joelle
    Posted 2 years ago #

    This plugin is a great and does just what I need quite easily, so thank you. BUT...

    Is there a way to deactivate the lightbox feature or possibly use a *different* lightbox? Unfortunately, the lightbox feature conflicts with other jquery running on the page, so if possible, I'd like to use my own lightbox jquery with it so I can position the jquery in my markup where it won't conflict.

    Thoughts on this? :) Thanks!


  2. mglaman
    Plugin Author

    Posted 2 years ago #

    That can be done, I wish I saw this before I just pushed the latest update.

    For now, open the plugin editor and find the "_enqueue_resources". Comment out the Lightbox lines using //, like in the example below

    public static function _enqueue_resources() {
    			//wp_enqueue_script('lightbox-js', plugins_url( '/lightbox/lightbox.js', __FILE__ ));
    			//wp_enqueue_style('lightbox-style', plugins_url( 'lightbox/lightbox.css', __FILE__ ));
    			wp_enqueue_style('fbalbum-style', plugins_url( '/fbalbum.css', __FILE__ ));
  3. Joelle
    Posted 2 years ago #

    Me,too! But thank you for replying anyway. :) Thanks for your help!

  4. mglaman
    Plugin Author

    Posted 2 years ago #

    I'll get a new update out within next few days that adds option to disable built in Lightbox

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Album
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic