Title: Settings logic
Last modified: August 22, 2016

---

# Settings logic

 *  [dteunkens](https://wordpress.org/support/users/dteunkens/)
 * (@dteunkens)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/settings-logic/)
 * I noticed that when I set _image\_links_ to false (don’t automatically add rel
   =”lightbox” to links to images) and _images\_as\_gallery_ to true (treat separate
   lightboxed images on a page as a single gallery), then ALL images on the page
   have rel=”lightbox” added even though the first setting forbid that.
 * This behaviour is explicitely defined in the code:
    **responsive-lightbox.php**
 *     ```
       if($this->options['settings']['image_links'] === true) || $this->options['settings']['images_as_gallery'] === true)
       			add_filter('the_content', array(&$this, 'add_links_lightbox_selector'));
       ```
   
 * For my site, I needed to disable automatic image_links because underneath each
   thumbnail I add an anchor-tag with a download-attribute (to try force downloading
   of the image instead of navigating to it…).
 * However, due to the logic, the anchor-tags with the download-attribute were also
   included in the gallery.
 * Isn’t the logic here flawed? I explicitely ask Responsive Lightbox to NOT automatically
   add the rel=”lightbox”. Shouldn’t the images_as_gallery setting means ‘put all
   the lightboxed images in a post in a single gallery’ (and let the user decide
   which images are lightboxed by looking at the images_links setting)?.
 * [https://wordpress.org/plugins/responsive-lightbox/](https://wordpress.org/plugins/responsive-lightbox/)

Viewing 1 replies (of 1 total)

 *  [apcgallery](https://wordpress.org/support/users/apcgallery/)
 * (@apcgallery)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/settings-logic/#post-5359075)
 * +1

Viewing 1 replies (of 1 total)

The topic ‘Settings logic’ is closed to new replies.

 * ![](https://ps.w.org/responsive-lightbox/assets/icon-256x256.png?rev=3460874)
 * [Responsive Lightbox & Gallery](https://wordpress.org/plugins/responsive-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-lightbox/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [apcgallery](https://wordpress.org/support/users/apcgallery/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/settings-logic/#post-5359075)
 * Status: not resolved