Greetings, I am using the “The Morning After” wp magazine theme, and it has a very nice feature, it allows for images to be added in a box with a caption text. however, there is no automatic way of doing this procedure, and I must add the code manually, code which is automatically changed by WordPress when I switch back to the visual editor.
I would need a way to add a button to the visual editor that will allow me to select from 3 styles, “captionleft”/”captionright”/”captionfull”, input an image url, followed by the caption text, and it would code it in the following way at the top of the post.
<div class="captionleft"><img src="path/to/image.jpg" alt="alt text" /><p>Caption goes here</p></div>
I would really appreciate any help you can give me.