Not working if links are the same
-
If I write the same Galery Link URL on each attached image in galery, and set on each image Gallery Link On Click Effect to Remove, plugin affects only on first image from gallery. It adds to first image link class no-lightbox as many times as number of images in gallery.
Here is html generated for galery with 3 images and on each image url set as /sample-page/
See html:<div id="gallery-2" class="gallery galleryid-773 gallery-columns-3 gallery-size-thumbnail"><dl class="gallery-item"> <dt class="gallery-icon"> <a href="/sample-page/" title="IMG_6140510a4" class="no-lightbox no-lightbox no-lightbox"><span class="image-wrap attachment-thumbnail" style="width: auto; height: auto;"><img width="150" height="150" src="https://membersblog.com/wp-content/uploads/set001510a41/IMG_6140510a4-150x150.jpg" alt="IMG_6140510a4"></span></a> </dt></dl><dl class="gallery-item"> <dt class="gallery-icon"> <a href="/sample-page/" title="IMG_6203ced7"><span class="image-wrap attachment-thumbnail" style="width: auto; height: auto;"><img width="150" height="150" src="https://membersblog.com/wp-content/uploads/set0011a589a/IMG_6203ced7-150x150.jpg" alt="IMG_6203ced7"></span></a> </dt></dl><dl class="gallery-item"> <dt class="gallery-icon"> <a href="/sample-page/" title="IMG_620697ea"><span class="image-wrap attachment-thumbnail" style="width: auto; height: auto;"><img width="150" height="150" src="https://membersblog.com/wp-content/uploads/set0011a589a/IMG_620697ea-150x150.jpg" alt="IMG_620697ea"></span></a> </dt></dl><br style="clear: both"> <br style="clear: both;"> </div>
If I set different urls like
/sample-page1/
/sample-page2/
/sample-page3/
everything works fine.
By in my case, the point is to set the same urls on all images in gallery.
https://www.ads-software.com/extend/plugins/wp-gallery-custom-links/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Not working if links are the same’ is closed to new replies.