WordPress.org

Ready to get started?Download WordPress

Forums

Insert PHP
[resolved] Incompatibility issue with Lightbox Plus (6 posts)

  1. ananaszjoe
    Member
    Posted 1 year ago #

    Hi!

    When I turn on Insert PHP, Lightbox Plus stops working. I use:

    • the latest WordPress version,
    • the latest Lightbox Plus plugn version
    • and the latest Insert PHP plugin version.

    Any suggestions? I'd be happy to get any!

    http://wordpress.org/extend/plugins/insert-php/

  2. WillBontrager
    Member
    Plugin Author

    Posted 1 year ago #

    I have not tested the Lightbox Plus plugin with the Insert PHP plugin, but from what you experience there seems to be some incompatibility between them. Regrettably, I am unprepared to spend the time to study the Lightbox Plus plugin code and test to try to find the reason.

    A choice of one or the other needs to be made unless someone finds a viable solution.

    Perhaps there are other plugins available that will run PHP code in posts and pages that are compatible with Lightbox Plus. Or, there may be plugins similar to Lightbox Plus that play nice with Insert PHP.

    Will

  3. jpalala
    Member
    Posted 1 year ago #

    I fixed this by adding the following to page.php in between javascript tags

    (note: you do need to install jquery into your website)

    (function(){
    $('a[rel="lightbox"]').attr("rel","lightbox[menus]");
    })();

    but you have to label rel="lightbox" for all the links which popup

  4. WillBontrager
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for the fix!

  5. maximamus
    Member
    Posted 9 months ago #

    Immediately apologize for the English
    Faced with the problem. I have a one-page site and lightbox does not open and returns to the top of the page. Tell me, what could be the reason?

  6. WillBontrager
    Member
    Plugin Author

    Posted 9 months ago #

    maximamus, Lightbox Plus support is the correct place to ask your question.

    Will

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic