Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

coldpumpkin on "Change generated HTML code from "Add Media" button"

$
0
0

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!


Viewing all articles
Browse latest Browse all 8245

Trending Articles