Adding a dynamic class name to the anchor wrapper of the image

Created on 28 April 2025, 6 days ago

Problem/Motivation

The module used to have an integration with colorbox module, where a css class was being added to the anchor element that wraps the image.

Proposed resolution

The idea is to be able to add any class to the anchor element.

Remaining tasks

Of course there comes a question what if there is a module for which a single or multiple css classes added to the anchor tag will not be enough. Some modules might require data attributes.

User interface changes

A new filter allows to add any css classes to the anchor tag.

Feature request
Status

Downport

Version

1.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024