• Resolved johnevanofski

    (@johnevanofski)


    I’m trying to use jQuery to add a rel attribute to all of the images on a page using the ‘slb[gallery]‘ function, it’s adding the rel attribute but the gallery is not linking. Am I using the wrong one? ‘lightbox[gallery]‘ does not work.

    Thanks!

    <script>
                 jQuery(document).ready(function($) {
                     $('a').val('data-slb-active').attr('rel','slb[comics]');
                 });
    </script>

    https://www.ads-software.com/extend/plugins/simple-lightbox/

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

    (@archetyped)

    SLB has much deeper integration with WP in the upcoming v2.0 which makes things like manual grouping impractical. However, more granular control over things like grouping will be made available as add-ons following the official release of SLB 2.0.

    Thread Starter johnevanofski

    (@johnevanofski)

    Ok I think I figured out why it wasn’t working anyway. Looking forward to the new releases, I’m loving the beta version!

    Thank you!

    Plugin Author Archetyped

    (@archetyped)

    Thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘having trouble getting the rel attribute to work’ is closed to new replies.