Closed jhogue closed 4 years ago
"Passed straight through the template as variables"…
Got it working. Closing issue
"Passed straight through the template as variables"…
@jhogue I know this is an old thread. But is it possible for you to show an example of how you did it? Thank you.
Edit: Nevermind, I figured it out. Changed the class name in the template file.
Yeah, sorry. I don't remember the use case and I looked through a few projects for this but couldn't find a place where I passed a class name variable through. What I might have done is used an external class on a wrapper to target these img tags and do any styling I needed that way.
Great plugin, thanks for all your work. I'm wondering why I can't seem to pass a class through the template when using the block. When I use the inline method it works… but this won't work for me:
I've tried assigning the class name and passing it through with
{{ image_class }}
, I've tried no quotes, single quotes… nothing in the output for a class… I was hoping to achieve this:And apply a different class where I might be using the block. Thanks for any help or pointers.