Kirbytag to wrap image in paragraph tags?

I have a number of kirbytags I need to create. An example is one that outputs the following:

<p class="full-width">
<img src="http://localhost/content/2-articles/7-walking/ice.jpg" alt="some alt text">
</p>

How do I do it? Do I copy the image tag from kirby/exensions/tags, put it in site/tags in a file called fwimage.php then modify that file?

Thanks

Yes, right. But can’t you achieve the same with the current image tag and adding a class? You would have the figure tag instead of a p tag but that would make more sense semantically anyway.

1 Like

I went to take a loo break and had the exact same thought. Probably easier to modify CSS too.

Thanks