WordPress.org

Ready to get started?Download WordPress

Forums

Simple Lightbox
[resolved] having trouble getting the rel attribute to work (4 posts)

  1. johnevanofski
    Member
    Posted 1 year ago #

    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>

    http://wordpress.org/extend/plugins/simple-lightbox/

  2. Archetyped
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. johnevanofski
    Member
    Posted 1 year ago #

    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!

  4. Archetyped
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.