Change the caption style

  • Author
    Posts
  • #146668

    serenasini
    Member

    Hi Ben,
    how can I change the caption style?

    As you can see the style is the same as the body.

    thank you,
    Serena

    The blog I need help with is inviaggioconsere.com.

    #146687

    binarymoon
    Theme Author

    Hi Serena – what do you want to do with the caption?

    You can target it with the following css:

    .wp-block-image figcaption {
    font-weight: bold;
    }

    This will make it bold. If you tell me how you would like it styled then I can suggest some css to make it happen.

    Thanks – Ben

    #146747

    serenasini
    Member

    Hi Ben, thanks for your quick reply!
    I would like the text to be centered and slightly smaller than body.

    Thank you very much,
    Serena

    #146754

    binarymoon
    Theme Author

    No problem – you can do that with the following css (replace the previous code I gave you):

    
    .wp-block-image figcaption {
        text-align: center;
        font-size: 0.8rem;
    }
    

    Not sure if you want it bold or not – but if you do then you could use:

    
    .wp-block-image figcaption {
        text-align: center;
        font-size: 0.8rem;
        font-weight: bold;
    }
    

    Thanks :)

    Ben

    #146756

    serenasini
    Member

    great!

    thank you,
    Serena

The topic ‘Change the caption style’ is closed to new replies.