Hello there.
When we're inserting an image to a post, by clicking the "Add Media" button, WordPress generates a certain code, being:
<a href="image_url"><img src="image_url" alt="image_name" width="image_width" height="image_height" class="image_class" /></a>
Question here is - how to change the way the code is generated? What if I want to add attributes to the <a>
tag? And what if I don't want some of those attributes of the <img>
tag?
Thanks in advance for your answers!