I want to be able to add a <span></span> around every image that gets posted. How will I be able to do this?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
|||
|
try to add a filter function to functions.php of your theme; example:
|
|||
|
|
<span>is typically considered an inline element so you might not want to wrap all your images in such tags. If you want to achieve some specific effect, consider defining a shortcode for the purpose. – Raphael Feb 9 '12 at 19:07