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

  1. aundc
    Posted 3 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


  2. aundc
    Posted 3 years ago #

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

  3. aundc
    Posted 3 years ago #

    ok, i found out myself

    i'd change in the yasg.php-file on 71 from:

    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