WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Photoblog
Feature Request (2 posts)

  1. idleberg
    Member
    Posted 1 year ago #

    right now, yapb supports adding a rel-attribute to image links. would it be possible to get an option to add a class as well? the fancybox viewer can only be triggered by a class if i'm not mistaken.

    http://wordpress.org/extend/plugins/yet-another-photoblog/

  2. jaroat
    Member
    Plugin Author

    Posted 1 year ago #

    Hi yathosho -

    As far as i remember, fancybox works over jQuery, which allows to select elements with rel-Tags without any hazzle:

    $('img[rel="lightbox"]').fancybox();

    should work for the free version of fancybox.

    @see http://api.jquery.com/category/selectors/

    br from Salzburg!

    - Johannes

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic