Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Millvi

    (@millvi)

    Ok made a mistake with the link.

    Here it is:
    https://svenskbotanik.se/de-vilda-blommornas-dag/

    Thread Starter Millvi

    (@millvi)

    I just noticed that the lightbox effect is not working on the old site either, and all this happened when I updated this plugin yesterday.

    ibreezer

    (@ibreezer)

    if you check your javascript error log you’ll notice that colorbox isn’t included. There is a similiar issue in a previous post that you can find here https://www.ads-software.com/support/topic/forms-with-conditional-logic-not-working-with-directory-on-same-page?replies=3 the solution can be found on the last post.

    The cause turned out to be an error in the file called gravity-forms-addons.php

    Around line 309 in that file I found the following:

    wp_enqueue_script(‘colorbox’, plugins_url( “/colorbox/jquery.colorbox-min.js”, __FILE__), array(‘jquery’));

    But that is wrong. The file is actually in the js directory, so it should be:

    wp_enqueue_script(‘colorbox’, plugins_url( “/colorbox/js/jquery.colorbox-min.js”, __FILE__), array(‘jquery’));

    After making that change everything started working properly again.

    Thread Starter Millvi

    (@millvi)

    Perfect!

    Tank you!

    This is NOT RESOLVED.

    Plugin Authors, I beg you to use @ibreezer’s post to permanently fix this. It breaks with each new release. I’ve had to go fix it manually for the last 3 updates.

    It’s line 307 for the current version (3.5.2):
    wp_enqueue_script('colorbox', plugins_url( "/colorbox/js/jquery.colorbox-min.js", __FILE__), array('jquery'));

    This is fixed in version 3.5.3.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Lightbox not working’ is closed to new replies.