WordPress.org

Forums

Yet Another Simple Gallery
How to add a link and a 'lightbox' class to the main image? (3 posts)

  1. aundc
    Member
    Posted 2 years ago #

    you say in the description:

    "This gallery doesn't use Lighbox, but it can be added easily by adding a link and a 'lightbox' class to the main image ... "

    Please, where exactly should i do that? I'm a little bit confused.

    And which (jquery) lightbox you will recommend, there are such a lot of them around :-)

    Otherwise i would prefer to have not any link from the main image, but this the settings do not provide

    thx in advance

    http://wordpress.org/extend/plugins/yet-another-simple-gallery/

  2. aundc
    Member
    Posted 2 years ago #

    in addition, how i can get the main image "loading icon" away please?

  3. aundc
    Member
    Posted 2 years ago #

    ok, i found out myself

    i'd change in the yasg.php-file on 71 from:
    "class=\"lightbox\">"
    to
    "rel=\"lightbox\">"

    like shown below:

    71 `$gallery .= "<div class=\"mainImgHolder\">\n<a href=\"$full_img_url\"
    rel=\"lightbox\"><img class=\"main_img\" src=\"$main_img_url\"
    alt=\"$main_slide_alt\" title=\"$main_slide_caption\" /></a>\n";`

    finally that does work.

    ... togther with "jQuery Lightbox" and ...
    switching off there the setting (!) "Auto-Lightbox image link"

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yet Another Simple Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags