- This topic has 13 replies, 5 voices, and was last updated 3 years, 7 months ago by Nic.
-
AuthorPosts
-
August 11, 2020 at 5:37 am #1396948Sheree
I have (finally) made the switch from Classic Editor on WordPress to Gutenberg. I have the following caption formatting in my Simple Custom CSS but it is no longer applying to the posts made in Gutenberg. All the posts which were formatted in the old classic editor are still displaying correctly.
How can I get this to apply to all posts on the website, regardless of whether they were formatted in classic or Gutenberg?
Thank you ๐
.wp-caption .wp-caption-text {
font-size: 16px;
font-style: italic;
text-align: center;August 11, 2020 at 6:12 am #1396996DavidStaffCustomer SupportHi there,
change the CSS selector from:
.wp-caption .wp-caption-text {
to:
figure .wp-caption-text {
August 11, 2020 at 7:07 am #1397080ShereeHi David,
Thanks for your answer. I’ve just tried that and nothing appears to have changed. Still having the same issue on the new posts ๐
August 11, 2020 at 7:36 am #1397126DavidStaffCustomer SupportTry:
.wp-caption .wp-caption-text, figure.wp-caption .wp-caption-text { font-size: 16px; font-style: italic; text-align: center; }
August 12, 2020 at 8:29 am #1399125ShereeNo success with this code either. Would it be helpful to know everything in the CSS box, in case another piece of code is interfering?
August 12, 2020 at 8:49 am #1399175LeoStaffCustomer SupportWhich page/post can I see a picture with captions?
August 12, 2020 at 8:51 am #1399184ShereeHi Leo,
This is the most recent post where the captions are not displaying properly; https://www.wingingtheworld.com/cows-dangers/
August 12, 2020 at 8:58 am #1399194LeoStaffCustomer SupportCan you try this instead?
.wp-block-image figcaption { font-size: 16px; font-style: italic; text-align: center; }
Make sure to clear any caching plugins if you are using any.
August 13, 2020 at 4:07 am #1400561ShereeHi Leo,
That seems to have worked on the new post created in Gutenberg – thanks!
However, the captions on the previous posts (created using classic editor plugin) have now aligned left and are slightly different font size to the new.
Is there a way we can standardise the captions across all posts please?
August 13, 2020 at 4:20 am #1400589DavidStaffCustomer SupportTry including the other selector.
Like so:
.wp-caption .wp-caption-text, .wp-block-image figcaption { font-size: 16px; font-style: italic; text-align: center; }
August 19, 2020 at 2:36 am #1409090Nicwhy we need additional css for this? in gutenberg edit mode the figcaption is 13px and aligned centered. in frontend nothing of this was applied. so i had to add the same css once again in my custom style.css:
.wp-block-image figcaption { font-size: 13px; color: #555d66; text-align: center; }
August 19, 2020 at 4:07 am #1409193DavidStaffCustomer SupportWP has the wonderful habit of updating its core blocks markup and its related CSS. And as in this case leaving it out of their front end stylesheet.
It’s really an issue with WP’s blocks. And we’re loathe to add CSS that should belong in core.
But it seems to be a common occurrence so this will be included in GP 3.0August 23, 2020 at 1:32 am #1414569Rohan VermaCan you help me on how to increase or decrease default wp text editor font size. Whether I use block editor or classic editor. It’s set to 12px by default. How to change that.
August 23, 2020 at 1:36 am #1414573NicIn GP global Settings. You find them in customizer.
-
AuthorPosts
- You must be logged in to reply to this topic.