Center Aligning of Captions not working
-
Hi,
I have my images center aligned but the captions are all left aligned. I am unable to figure out why. With the previous theme that I used – Hemingway Reloaded, it was automatically taken care of. What do I need to do to resolve this issue?
Thank you..The blog I need help with is: (visible only to logged in users)
-
I found one strange thing. If I don’t align the image at all, then the caption comes in the center but if I make the image center aligned, the text moves to the left. Is it a problem of the theme itself?
-
Hi there,
This issue seems to be related to the theme, which is why it worked with another theme. The issue is when the image block has been aligned centre, as the images you have are the full width of the page, removing the align on the image will fix this issue.
If you have access to CSS, only premium, business and eCommerce plans have the ability to add custom CSS. You can add this code to fix the issue and keep the image block aligned centre.
Try removing the align for the image block and let me know if this doesn’t fix your issue.
Good luck!
-
Here’s the CSS code if needed:
.wp-block-image .aligncenter>figcaption {
display: block
} -
Thanks Bill. Unfortunately I am on the free plan. So then I would have to change the theme because it would be too much effort to go through each post from the past and remove alignments for photos..
I appreciate the help :-). -
-
Hi profundareflexion,
I have my images center aligned but the captions are all left aligned
Oh, I see what you mean! Centre aligning images makes the caption bunch up on the left with only a couple of words per line. It doesn’t look right so I’m going to create a bug report for our developers to look at.
Thanks for reporting this!
-
Hi gemmacevans,
Thanks for creating the bug report, is this something I’m able to do for future issues, or is it only something staff can do?
-
Hi 404bill,
If you have a GitHub account, bug reports can be submitted there. This is the one I created for the caption issue on Baskerville 2:
https://github.com/Automattic/themes/issues/854
We’re always happy to look at possible bugs, so you’re welcome to tag those threads for staff if you would like a second opinion :) And we don’t send people asking for help to GitHub, we take care of their questions on these forums.
-
Hi Bill, gemmacevans,
Thank you for the help. I am hoping that the bug would get fixed because apart from this issue with baskerville 2, I am happy with the layout. It’s definitely better than others I tried out. Somehow with my older theme, Hemingway rewritten, I am unable to get the featured images to load anymore. So I cannot revert to it until baskerville gets fixed. I had a previous thread about it https://en.forums.wordpress.com/topic/query-about-two-issues-with-themes/.
May be that one also needs to be reported as a bug.
Is there some place where I can look at to find when the bug is fixed? -
Is there some place where I can look at to find when the bug is fixed?
Yep. Use the link that gemmacevans shared above. You can follow along directly in GitHub.
-
- The topic ‘Center Aligning of Captions not working’ is closed to new replies.