(function ($) { $(document).ready(function() { $('.teaser-body img, .post-body img').each(function() { var currentImage = $(this); currentImage.wrap(""); }); }); })(jQuery);