Site logo

[Resolved] CSS for caption font size not working

Home Forums Support [Resolved] CSS for caption font size not working

Home Forums Support CSS for caption font size not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2420421
    Sue

    I’ve successfully changed the font size on captions many times before, but for some reason, this time it isn’t taking.
    If I look at the source code, I definitely see my CSS in there:
    .wp-block-image figcaption {
    font-size: 15px;
    }
    But the caption size stays the same (13px). I’ve tried clearing my cache and viewing the page on different browsers, and the result is the same.
    FYI I am using the block editor and have the GenerateBlocks plugin installed on both sites I included in the Private Information box (one where the CSS worked, one where it didn’t).

    #2420444
    Leo
    Staff
    Customer Support

    Hi there,

    Looks like you’ve missed a closing } for the previous @media (max-width: 768px) { so the code is working in mobile only:
    https://www.screencast.com/t/DtjcgXacchMg

    #2420446
    Sue

    Oh, yikes — thanks!!

    #2420657
    Leo
    Staff
    Customer Support

    No problem 🙂

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