Hey, I’m trying to centre images within my blog post, but can’t figure out how.
First of all, I’m able to with the visual editor, but I’m using shortcode for image captions and need to add that in text editor. Whenever I open the visual editor, the caption part of my code disappears, leaving me to go back and re-insert it to every image.
This is the code I’m using for images:
[caption align=“align###” width="###" class=“imgcaptions”] ###[/caption]
This is what happens to it when I open visual editor:
I’ve tried adding class=“aligncenter” within the image itself without luck. align=“alignleft” and “alignright” work fine, but nothing else does. There’s got to be a way to centre and image and keep this code… I’m losing my mind over these tiny roadblocks.


