Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Image Link Attributes

112 sites Security covered Drupal 9–11
View on drupal.org

This module allows administrators to add custom attributes like "Target", "Class", and relational attributes (e.g., for lightboxes) to links generated from image fields. It also provides an option to link to an image style variant instead of the original file.

About
The Image Link Attributes module extends Drupal's default image field so that when an image is linked, additional attributes can be applied to the link for "Target", "Class" and Relationship (ie: rel="lightbox-series").

* Works with image fields and responsive image fields.

Usage
Install the Image Link Attributes module, then navigate to the display settings page of the content type with the image field that you would like to adjust. When you set the image to link to content or file, the additional settings will become available.

Link to an Image Style variant
From version 8.x-1.8 and newer, you can choose an Image Style variant instead of being confined to linking to the original file. To choose an Image Style variant, click the "Link to alternate Image Style" checkbox on the Image Field — Manage display settings form; then from the drop-down list of image styles choose the style you would like the field to link to.

Known Issues
None.

Depends on

Dependencies of the latest stable release

  • image Drupal core
  • link Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2025
Latest release
10 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
8.x-1.11 Stable 9–11 Oct 7, 2025
8.x-1.10 Stable Oct 7, 2025