Timeline for How to customize a link with a custom module?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 25, 2018 at 9:28 | comment | added | user90656 | OOOPS I forgot to clean the cache. The answer works | |
Nov 25, 2018 at 9:27 | vote | accept | CommunityBot | ||
Nov 25, 2018 at 9:11 | comment | added | Hudri |
Have you tried $build['private_message_link']['#title'] = t('<i class="fontawesome"></i> Click me. Click me now!');
|
|
Nov 25, 2018 at 9:05 | comment | added | user90656 | I updated your answer. The icon is not rendered this way | |
Nov 25, 2018 at 9:05 | review | Suggested edits | |||
Nov 25, 2018 at 9:57 | |||||
Nov 25, 2018 at 8:56 | comment | added | user90656 | yes but I do not know how to insert do awesome in markup | |
Nov 25, 2018 at 8:49 | comment | added | Hudri |
I guess the simpliest way would be extending/overwriting the #title as suggested by the module author.
|
|
Nov 25, 2018 at 8:44 | comment | added | user90656 | Thank you, it works. Can you tell me how to add a font-awesome icon in front of the text? See the end of my question | |
Nov 25, 2018 at 8:21 | history | answered | Hudri | CC BY-SA 4.0 |