- This topic has 15 replies, 2 voices, and was last updated 3 years, 2 months ago by
Leo.
-
AuthorPosts
-
November 15, 2019 at 9:50 am #1064234
Jodie
Hi guys
Hope you are all doing great!
I’ve just noticed that all my caption text has changed size and now is left aligned since I updated to the latest version of WordPress.
I didn’t have any css styling on my sites but have now searched the Support Forum here to find a solution to fix this which I did.
Leo offered this CSS in a previous support discussion.
.wp-block-image figcaption {
text-align: center;
font-size: 14px;
font-weight: bold;
}Any ideas of why this changed?
Is using the CSS above the best thing to do?
As always I appreciate your help.
I’ve given you the link (no CSS added yet to this site) to show you what I mean when I say it has changed.
Search for Shop Arteza Real Brush Pens to take a look
Cheers Jodie
November 15, 2019 at 9:54 am #1064240Leo
StaffCustomer SupportHi there,
Give this a shot:
https://generatepress.com/forums/topic/caption-styling-broken-after-update-to-wordpress-5-3/#post-1063589Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 15, 2019 at 10:08 am #1064260Jodie
Hi Leo
Ahh, I see that it was not only me π
Thanks for sharing that.
I will read carefully and let you know how I get on.
Cheers
Jodie
November 15, 2019 at 10:10 am #1064263Jodie
Hi Leo
I tested adding the snippet that Tom gave to my functions.php file and it has returned to normal.
Thanks so much.
Cheers Jodie π
November 15, 2019 at 10:10 am #1064264Leo
StaffCustomer SupportNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 15, 2019 at 10:16 am #1064273Jodie
Hi Leo
I’ve tried adding this snippet to one of my sites function.php file and it shows up above the header of the site.
What have I done wrong?
Cheers
Jodie
November 15, 2019 at 10:19 am #1064276Leo
StaffCustomer SupportJust making sure you are adding it to child theme’s
function.php
?If so maybe there is a syntax error in that file? You can test by removing all other functions in that file temporarily.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 15, 2019 at 10:20 am #1064277Jodie
Thanks Leo
Yes to the Child Theme’s function.php
There is nothing in the file, it is blank.November 15, 2019 at 10:24 am #1064279Leo
StaffCustomer SupportDoes it look like this at the start of the file?
https://www.screencast.com/t/LU8b0rTAAvPBDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 15, 2019 at 10:38 am #1064288Jodie
No it doesn’t have this at the start. It is completely blank
November 15, 2019 at 10:43 am #1064292Leo
StaffCustomer SupportThat should be the issue.
Can you download a copy from here?
https://docs.generatepress.com/article/using-child-theme/#installing-a-child-themeDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 15, 2019 at 10:44 am #1064294Jodie
Can I just copy that text from my site that has that in the child theme function.php file?
November 15, 2019 at 10:47 am #1064295Leo
StaffCustomer SupportYes
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 15, 2019 at 10:49 am #1064299Jodie
Excellent! Let me try that I will get back to you.
π
November 15, 2019 at 10:52 am #1064300Jodie
That’s done the trick Leo
Thanks so much for your help as always.
Cheers
Jodie
-
AuthorPosts
- You must be logged in to reply to this topic.