Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, SLB automatically activates links in posts/pages/widgets/etc., but slb_activate() allows you to activate links in custom content (e.g. manually added content in a theme template, etc.) to be displayed in the lightbox whether it’s a single link or tons of text with multiple links mixed in throughout.

    Either way, just copy/paste the example from slb_activate()‘s documentation page you referred to and set your link as the value of the $content variable.

    If you are experiencing an issue after doing the above, please provide a link to a page that exhibits the issue you are experiencing as well as the code you are using from your template file and I would be glad to take a closer look.

    Thread Starter vigilant_spb

    (@vigilant_spb)

    I saw this documentation, but it’s rather difficult way.

    For example I have WP page with built-in google docs sheet. It’s an iframe, pasted right into the page code in WP editor. If I want to add a link “enlarge” using your lightbox I can’t do it right here in editor.

    With some other plugin (not updated for ages unfortunately) the way was much easier:

    1. enable secondary lightbox option in plugin settings;
    2. add “class=abcdefg” to my link I wanna open in LB

    And that’s it, right in WP console and post editor + any customization for secondary LB (not for photos), may be you should add smth like that in your plugin ??

    Plugin Author Archetyped

    (@archetyped)

    Hi, as previously-noted, “SLB automatically activates links in posts/pages/widgets”, so no manual settings are required for supported links in those content areas. slb_activate() is for activating links outside of these content areas.

    Note that only supported link types are displayed in the lightbox regardless of the attributes added to a link. Images/Image attachment links are natively supported, while support for other link types may be added via extensions (such as the video extension). Embedded web pages are not currently supported.

    Thread Starter vigilant_spb

    (@vigilant_spb)

    that’s why I’ve chosen another plugin, yours, in fact, isn’t so simple as is called ??

    Hi, the slb_activate() works for me, however that custom activated lightbox is opening in the bottom of the screen, and moves down about 200 pixels at every click on prev/next buttons (after successfully loading the next image into lightbox). Any idea what causing this ‘out-of-the-box’?

    And please let me know, how/if i can custom define the size of the image being opened in this specific custom activated lightbox?

    Cheers!
    Wiktor

    • This reply was modified 4 years, 1 month ago by iwanwilaga.
    • This reply was modified 4 years, 1 month ago by iwanwilaga.
    Plugin Author Archetyped

    (@archetyped)

    @iwanwilaga as your issue appears to be different from the original poster, please create a new ticket so that your specific issue can be fully evaluated.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can I add a classname to link or image to trigger Lightbox?’ is closed to new replies.