Gallery caption in Baskerville 2
-
I am facing some issues in the gallery caption of Baskerville 2. Even though the gallery is centre-aligned, the caption seems to be left-aligned.
Here is an example: https://prasadradhika.wordpress.com/pastels/
The blog I need help with is: (visible only to logged in users)
-
Hi, this might be a bug — we’ll need to dig a bit further.
Noting the following CSS seems to address it in this theme:
.aligncenter figcaption { text-align: center; }
We’ll need to check a few more themes now to determine whether it’s a theme issue or something with the block itself, so we’ll do that and update you here.
-
Can you clarify how you aligned center on the gallery? I’m wondering if that’s a part of the issue.
-
Just as an update, I’ve confirmed this is a WordPress bug with Gallery Captions. I’ve filed it here if you’d like to follow along.
https://github.com/WordPress/gutenberg/issues/22188Cheers!
-
How and where do I enter that CSS? I’m new to this.
In the Gallery block, there are some alignment options on the top. Since the caption was going to the left, I tried aligning gallery to centre to make the caption come in the centre. -
Thank you for the details.
Custom CSS is only available on plans Premium and above, you wouldn’t be able to add that to a free site, I’m afraid.
As @supernovia mentioned, it has already been reported so we would need to wait for the issue to get fixed by our developers.
-
-
That is correct, you can keep an eye on the issue @supernovia mentioned above to check the progress on it.
-
-
@prasadradhika we can take a look; will you send the link to the affected page?
And my apologies for not being clearer about the CSS. If you were planning to upgrade the site to Premium when everything’s ready, you can use the CSS then. If not, please wait for that bug to be fixed.
-
Here is the page: https://prasadradhika.wordpress.com/computer-science/
I tried putting captions for the videos but because they were getting left-aligned instead of centre-aligned, I removed them.
Thanks for your support.
-
- The topic ‘Gallery caption in Baskerville 2’ is closed to new replies.