Viewing 8 replies - 1 through 8 (of 8 total)
  • Not a solution but a hint: you can close the gallery by pressing escape-key but i’m sure you know that. I guess most users expecting a slide to the next picture by clicking next to the image.

    regards
    Frank

    You can edit the following file: responsive-lightbox/js/front.js

    Near the end of the file, at the array of options (line 227), add these lines of code:

    ,
      wrapper       : {
        onClick: "close"
      }
    Thread Starter skyhighNL

    (@skyhighnl)

    Thanks mgiadach, that works like a charme!

    The only thing i wonder now what happens when I get an update of the plugin, do I need to add the code again? So maybe you know a solution without editing a core file of the plugin?

    one more related question on TosRUs. it’s possible “onclick” on image, to go to next image, so it is not necessary to click the “next button”.?

    skyhighNL, it’s very likely that the modification will be overwritten in a plugin update.
    I don’t know how to solve the issue without editing a core file, so I think we should wait for a permanent solution from the plugin’s developer.

    Thread Starter skyhighNL

    (@skyhighnl)

    @mgiadach, if the developer could add this option as a simple checkbox to enabel/disable the ‘overlay close’ the problem would really be solved and futureproof.

    @aldon, i recommend starting a new topic and ask your question again.

    I would like to see this feature too.
    I would expact the following behaviour:

    click at specific area (navigation buttons) –> goto next/prev image
    click anywhere else in the overlay –> lightbox close

    I would also like this feature. Something like “rlArgs.wrapperOnClick” in front.js so that we can change it with rl_lightbox_args, or through the admin page.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘TosRUs close on overlay click’ is closed to new replies.