Caption under picture won't center align
-
Hello, I haven’t had this problem on my previous posts, but now the caption below my image doesn’t align to the center. I’ve seen fixes for premium accounts by adding .wp-caption .wp-caption-text {
text-align: center;
}
to the additional CSS option but unfortunately I don’t have a premium account. My theme is Canard and I really like it. Some help would be appreciated! Thank you.The blog I need help with is: (visible only to logged in users)
-
-
Hi macmanx, I have the same issue as the original poster. I just made my first post using the new block editor and all of my images are no longer centred, and the caption uses the same font as the rest of my post when it should also be centred, italicized, and smaller. Is this part of the same issue? When the fix is ready, will I have to go back and edit the post, or will it update on its own? Thank you!
-
Hi there,
The issue here is that the block editor uses a different type of HTML code to create captions than the classic editor did, and older themes don’t have styling for this new code. That means the caption falls back to the default styling built into your browser instead for that type of HTML.
Once styling for the new HTML is added to the theme, it will automatically apply to all existing captions for image blocks on your site, so you won’t need to update anything manually. But I’m afraid I’m not able to tell you when this will be fixed.
-
Thank you for the detailed explanation! :) Glad I at least won’t have to worry about making changes later.
- The topic ‘Caption under picture won't center align’ is closed to new replies.