WordPress.org

Forums

Remove Border from Single Thumbnail in Gallery (4 posts)

  1. KevinM83
    Member
    Posted 1 year ago #

    By default, thumbnails inside an image gallery have a gray border. I know I can remove the border from all gallery thumbnails sitewide, but is there any way to remove the border from only a single thumbnail inside a gallery? Can CSS be applied based off the image ID? I have tried a few things to no avail. Any help is appreciated. Thanks!

  2. Roy Ho
    Member
    Posted 1 year ago #

    Yes so if you have a unique ID, you can target just that image.

  3. KevinM83
    Member
    Posted 1 year ago #

    Thanks for the response. I have the image ID, but how do I reference it in the CSS? Everything I'm trying isn't working...

    Is it via #wp-image, like #wp-image-30638?

  4. Roy Ho
    Member
    Posted 1 year ago #

    If I could see the underlying html, I can better assist you but for IDs, it is usually #id { color:red; } like so...

Topic Closed

This topic has been closed to new replies.

About this Topic