• Resolved antkh

    (@antkh)


    Hello, I need to override default settings to make lightbox close on any click not only background (closeOnClick: ‘anywhere’).
    Tried adding custom JS code to my theme like this:

    $.featherlight.defaults.closeOnClick = 'anywhere';

    $.extend($.featherlight.defaults, {
      closeOnClick: 'anywhere'
    });

    Even changed defaults in wpFeatherlight.pkgd.js, wpFeatherlight.pkgd.min.js, featherlight.js and featherlight.min.js in plugin directory.
    Still no success.
    Can anyone clarify where should I change settings?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Override defaults (closeOnClick)’ is closed to new replies.