[Resolved] font and color of caption

Home Forums Support [Resolved] font and color of caption

Home Forums Support font and color of caption

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #484421
    Dina

    Hi, how can I modify the font, colour and size of my caption?

    The titles are dark grey as a default but my bakground is black, so they can’t be read.

    Thanks

    #484630
    Leo
    Staff
    Customer Support

    Hi there,

    The font family inherits from Typography > Body.

    You can change the color with this CSS:

    .wp-caption .wp-caption-text {
        color: #ffffff;
    } 

    Let me know if you are wanting different font family for the caption.

    #484762
    Dina

    It doesn’t work!

    #484769
    Leo
    Staff
    Customer Support

    Can you link me to the page?

    #484780
    Dina

    Sure. I’m using wp media folder, if you can see there are three displays, in the last one the titles are grey

    http://booksofart.org/1153-2/?preview_id=1153&preview_nonce=e196351938&post_format=standard&_thumbnail_id=-1&preview=true

    #484782
    Leo
    Staff
    Customer Support

    It says “Sorry, you are not allowed to preview drafts.”

    #484787
    Dina
    #485030
    Tom
    Lead Developer
    Lead Developer

    Your captions are being styled by a plugin you’re using:

    .wpmf-gallery-caption .title {
        color: #393939;
        font-family: Raleway;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    You can copy that CSS and make any necessary changes to it πŸ™‚

    #485222
    Dina

    Thank you Tom! I’ve texted the plugin team too anyway, in fact I wasn’t sure if it depends on GP or the plugin. I’ll try to paste this one and let you know. Maybe with the plugin there’s an easier way. I don’t understand much about it.Thanks!

    #485609
    Tom
    Lead Developer
    Lead Developer

    No problem! πŸ™‚

    If you copy the CSS above and paste it in using one of these methods, you’ll be able to adjust the font size and color: https://docs.generatepress.com/article/adding-css/

    #486777
    Dina

    Hi Tom, I’ve used both Simple and additional css but nothing happens.

    WP’s replied “You can open ‘plugins/wp-media-folder/assets/css/display-gallery/style-display-gallery.css’ file , line 245 to change color and font-size” but I don’t know how to open the folder, and on the dashboard I can’t see the assets!

    #486913
    Tom
    Lead Developer
    Lead Developer

    That’s not very good advice – any changes you make in there will be lost if you update the plugin.

    Instead, make this custom CSS more specific than theirs:

    body .wpmf-gallery-caption .title {
        color: #393939;
        font-family: Raleway;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
    }
    #488898
    Dina

    Great, it works now!
    Thank you!! πŸ™‚

    #489076
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

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