[Resolved] Caption text size and alignment has changed

Home Forums Support [Resolved] Caption text size and alignment has changed

Home Forums Support Caption text size and alignment has changed

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #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

    #1064240
    Leo
    Staff
    Customer Support
    #1064260
    Jodie

    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

    #1064263
    Jodie

    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 πŸ™‚

    #1064264
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1064273
    Jodie

    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

    #1064276
    Leo
    Staff
    Customer Support

    Just 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.

    #1064277
    Jodie

    Thanks Leo
    Yes to the Child Theme’s function.php
    There is nothing in the file, it is blank.

    #1064279
    Leo
    Staff
    Customer Support

    Does it look like this at the start of the file?
    https://www.screencast.com/t/LU8b0rTAAvPB

    #1064288
    Jodie

    No it doesn’t have this at the start. It is completely blank

    #1064292
    Leo
    Staff
    Customer Support

    That should be the issue.

    Can you download a copy from here?
    https://docs.generatepress.com/article/using-child-theme/#installing-a-child-theme

    #1064294
    Jodie

    Can I just copy that text from my site that has that in the child theme function.php file?

    #1064295
    Leo
    Staff
    Customer Support

    Yes

    #1064299
    Jodie

    Excellent! Let me try that I will get back to you.

    πŸ™‚

    #1064300
    Jodie

    That’s done the trick Leo

    Thanks so much for your help as always.

    Cheers

    Jodie

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.