Insert image into post with wrapping div?
-
So here’s the deal…by default, when you insert an image into a post, the image is wrapped with just an anchor tag, right? Right. What I’m looking to do is modify that behavior so that the anchor is also wrapped inside of a div. Yes, I know I can just do it manually inside of the html editor, but I’d like it to be automatic.
I’ve been scanning the WordPress source code trying to find the script that generates the image inside of that link, but I have yet to find it.
Can anyone shed some light as to where I should look or what I should do? If I have to write a plugin, so be it, but I at least need a hook.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Insert image into post with wrapping div?’ is closed to new replies.