I am trying to set up blog posts so that when an image is added it is wrapped in one div set to float right and when text is added it is wrapped in another div set to float left. So that all images added to posts in the blog will always have images right and text left.
have tried using jQuery to wrap all p tags in a div like so
jQuery('p').wrap("<div class='post-txt'></div>");
But I cant work out which PHP file to add this to, so nothing appears to be happening.
Any help to point me to the correct PHP file within wordpress or any other options would be very much appreciated.
All the best
Harry