first of all: your plugin is awesome.
I have a simple question, that I hope someone can help me with.
I would like to increase the clickable “navigation” area to get to the next or previous photo bigger. Currently it’s set to the image’s width (if you click on the first 50 %, you get to the previous image and on the other 50 % you’ll get to the next image). Is it possible to increase the area to the whole screen width and height instead of the image’s width and height?
The page I need help with: [log in to see the link]
Hi, behavior like this is best handled via a custom theme. Themes can fully customize the lightbox’s appearance, layout, and behavior.
See SLB’s Themes documentation for details on creating and customizing lightbox themes.
Thank you for your reply. Could you give me a hint, how/where I can set the two nav elements to be fullscreen?
The nav elements may need to be set outside of other elements in the layout HTML so that they can stretch to the full height of the screen without affecting the lightbox’s frame.
You would then need to set the height of each nav element via CSS stretch to the full height of the browser window.
Sorry to bother you again. I downloaded the example theme from your Github repository and uploaded it for a test to ‘/plugins/simple-lightbox/themes’.
But the theme isn’t shown in the UI settings list. Am I missing something?
I never edited a plugin before, so I don’t know, if I did something wrong…
- This reply was modified 2 years, 4 months ago by x06designs. Reason: spelling
Hi, as per the introductory tutorial on custom lightbox themes, the sample theme is set up to be installed as a plugin.
As such, the custom theme’s folder should be copied to the site’s
pluginsdirectory and activated like any other plugin. Once activated, the theme should be included in the list of themes in SLB’s settings.
Copying the custom theme’s files to SLB’s
themesdirectory will have no effect, and is not recommended as any additional/modified files will be removed whenever SLB is updated.
- This reply was modified 2 years, 4 months ago by Archetyped.
- The topic ‘Increase clickable area to get to the next/previous photo’ is closed to new replies.