Support » Plugin: Lightbox Plus Colorbox » Remove inline JavaScript?

  • Resolved swinggraphics


    How can I remove this block of inline JavaScript?

    <!-- Lightbox Plus v2.3 - 2011.08.11 - Message: 0-->
    <script type="text/javascript">

    It is incompatible with minified JS, à la W3 Total Cache.

    I think this line of code should be moved into the main .js file. No reason for it not to be. Failing that, I would like to put it in my own js functions file.

    Love it otherwise, though!


Viewing 1 replies (of 1 total)
  • I see; the reason it’s inline is so it can initialize with the options set in the preferences pane. I got around this by adding this to my functions.php:

    global $wp_lightboxplus;
    remove_action('wp_footer', array($wp_lightboxplus,'lightboxPlusColorbox'));

    and adding the JS that was being generated to my own .js file.


Viewing 1 replies (of 1 total)
  • The topic ‘Remove inline JavaScript?’ is closed to new replies.