WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. resumeready
    Member
    Posted 2 years 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
    Plugin Author

    Posted 2 years 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 2 years 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 2 years ago #

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

  5. Aesqe
    Member
    Plugin Author

    Posted 2 years 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 2 years ago #

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

  7. Aesqe
    Member
    Plugin Author

    Posted 2 years 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 2 years ago #

    Success! Thanks very much for your help. -Robert

  9. writerforce
    Member
    Posted 2 years ago #

    worked very well, thank you

    for any theme you could just edit the same to

    .wp-caption {
        color: #e0a25b !important;
        font-size: 16px;
    }
  10. elita.sharpe@live.com
    Member
    Posted 1 year ago #

    Grrr. Need help with the same issue on the Empire theme. Have tried everything I know (though that amount is limited). Nothing has worked so far, even the above suggestions. Problem is that the caption on the gallery pages is too light to read. Page is: http://www.busyneedlebatting.ch/gallery/ When you click on any pic to open the portfolio, you'll see the problem at the bottom. Absolutely maddening. I want to change the colour ONLY on the gallery pages because it's a light background.

    Thanks for any input.

  11. elita.sharpe@live.com
    Member
    Posted 1 year ago #

    Have been given the answer from Woothemes, supplier of the Empire theme.
    Was told to insert:

    .pp_description,
    .currentTextHolder {color:black}

    at the TOP of my custom css file. This did the trick. Thanks to Stuart, WooNinja. Hope others might find it useful too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic