A very common need, is the ability to have a link with a class like

<a class="button">Tel</a>

It would be nice to add the ability to set classes on the link element in the field formatter. Could be achieved easily. What do you think?

Comments

jenlampton’s picture

I'm not sure if this will work for you, but if you are outputting the link using a view, then by using the patch in this issue you can Rewrite the output of the telephone field, and add whatever classes you like.

jenlampton’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Or, this is probably what you wanted.

smustgrave’s picture

Status: Needs review » Closed (outdated)

Telephone is moving from core so closing old D7 tickets

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.