Simple Lightbox
[resolved] SLB not working with my theme (5 posts)

  1. Elno
    Posted 2 years ago #

    Hi there,

    I have this page

    Fo some reason the SLB is not working. I am not sure if it a conflict issue or i am missing something. If you can have a look and let me know it would be great.

    I have disable all the plugins and any other script but SLB is still not appearing.


  2. Elno
    Posted 2 years ago #

    with the default WP template the plugin is working fine. So something in the template is affecting the SLB. But the weird thing is that i have disabled every script except the SLB and it still not working. any idea?

  3. Archetyped
    Plugin Author

    Posted 2 years ago #

    The page is loading an outdated version of jQuery. SLB only supports the version of jQuery included with WordPress itself.

    More info on jQuery support.

    If jQuery is not being loaded directly in the theme's template files, you may want to look in functions.php to see if it's being loaded from there.

  4. Elno
    Posted 2 years ago #

    @ Archetyped,

    I have add the latest jQuery:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

    I found that the wp_head(); was missing and i have add it.

    But it still not working.

    In the function.php no js is loading. The jQuery is loading from the header.php.

  5. Archetyped
    Plugin Author

    Posted 2 years ago #

    SLB handles loading jQuery itself, so it's not necessary to add it manually.

    I have tested the original theme ("Flozo") and SLB worked properly once the outdated jQuery versions were removed and WP's jQuery was allowed to load (the theme actively blocks WP's version of jQuery from loading).

    The theme is still not ideal (it has several coding issues), but if you want to keep using it, I would recommend that you:

    1. Download the latest version of the theme (SLB was tested with version 1.0)
    2. Remove the hardcoded versions of jQuery and relocate other scripts to the footer (where WP's jQuery is loaded)
    3. Unblock WP's jQuery from loading

    SLB should work after this, but due to the number of issues the theme has and the number of modifications that are necessary, it is not supported by SLB. This is the extent of the support that I can offer on getting SLB to work with this theme.

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.