Add class(es) to Asset::getImg() #11561
Answered
by
brandonkelly
dolphiq-allard
asked this question in
Q&A
-
Is there any way I can add classes to the I can't seem to find this in the documentation. |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Jul 6, 2022
Replies: 1 comment
-
You can add classes using the {{ asset.img|attr({ class: 'foo bar' }) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add classes using the
|attr
filter: