Forums

File Gallery
[resolved] How to change caption text color (9 posts)

  1. resumeready
    Member
    Posted 4 months ago #

    Where in the file gallery css do I change the font color for the image caption? I have searched (using the edit opiton from the plugin list) and cant's seem to find the spot. Thanks,

    http://wordpress.org/extend/plugins/file-gallery/

  2. Aesqe
    Member
    Posted 4 months ago #

    @resumeready: you should change the color of caption text via CSS - either by modifying your theme's style.css file, or by creating a custom File Gallery template.

  3. resumeready
    Member
    Posted 4 months ago #

    I just tried to modify the style.css file but the font color did not change. Perhaps I modified the wrong entry. Can you be more specific as to where this caption color can be found in the style.css file? I have successfully modified other fonts in this file, but I'm unable to find this one.
    Thanks,

  4. resumeready
    Member
    Posted 4 months ago #

    Hello? Can you tell me where exactly to find the CSS code for this caption color n the CSS stylesheet?

  5. Aesqe
    Member
    Posted 4 months ago #

    @resumeready: it depends on which theme you are using, and which file gallery template. But, in any case, adding something like the following line in your theme's style.css should work:

    .gallery.default .gallery-caption { color: #FF0000 !important; }

  6. resumeready
    Member
    Posted 4 months ago #

    Just tried your fix and it made no difference. Here is the page if it helps.

  7. Aesqe
    Member
    Posted 4 months ago #

    OK, forget what I posted above and delete that from your style.css, and then just add "!important" to your ".gallery-caption" selector's color property, like this:

    .gallery-caption {
        color: #000000 !important;
        font-size: 12px;
        margin: 0 0 12px;
    }

    That will work :)

  8. resumeready
    Member
    Posted 4 months ago #

    Success! Thanks very much for your help. -Robert

  9. writerforce
    Member
    Posted 1 week ago #

    worked very well, thank you

    for any theme you could just edit the same to

    .wp-caption {
        color: #e0a25b !important;
        font-size: 16px;
    }

Reply

You must log in to post.

About this Plugin

About this Topic