How to add a custom class to Term Links

Created on 5 July 2018, over 7 years ago
Updated 17 September 2024, about 1 year ago

I tried to add a custom class to the output rendered in cctags-term.tpl.php by overriding the function template_preprocess_cctags_term in cctags.module in a custom module. The override works but the $variables['term'] received by the custom module is not an object so none of the code in that function executes. I just want to add a class to the ['attributes_array']['class'] array set up in that function. Any help is appreciated.

πŸ’¬ Support request
Status

Fixed

Version

1.9

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sadman

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024