[Support request] Adding black border to items in the media library

Home Forums Support [Support request] Adding black border to items in the media library

Home Forums Support Adding black border to items in the media library

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #309728
    Lainey

    Is there a way to add a black border to items in the media library? Thank you!

    #309763
    Leo
    Staff
    Customer Support

    Hi Lainey,

    Like everything in the media library? They would have some different selectors I think.

    Can you provide a link to your site and let me know which items you would like to add borders?

    Thanks!

    #309824
    Lainey

    Hi Leo! The photos, primarily. https://www.growyouradvocacy.com/ Thank you!

    #309848
    Leo
    Staff
    Customer Support

    Try something like this:

    .page-header-image img {
        border: 2px solid #000000;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know.

    #309853
    Tom
    Lead Developer
    Lead Developer

    Are you wanting the borders to appear in the actual media library in the Dashboard? Or on the images on the live site?

    #314377
    Lainey

    Tom – To the images on the live site. Thanks!

    #314401
    Leo
    Staff
    Customer Support

    Have you tried my code above?

    #314423
    Tom
    Lead Developer
    Lead Developer

    Leo’s code will add a border to the featured images/page header images.

    If you also want to apply a border to every single other image on the site, you could do this..

    .site-content img {
        border: 2px solid #000;
    }
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.