WP Image Borders
[resolved] What if I only want borders around SOME images, not all? (7 posts)

  1. efilloramo
    Posted 1 year ago #

    Is it possible to "undo" a border to a picture manually if you don't want a border around that picture but you want it around the rest of the pictures on the pages and posts?


  2. swbusiness
    Posted 1 year ago #

    I have the same question!

  3. Faisal Humayun
    Posted 1 year ago #

    This won't be the plugin to do that, at least not without a whole new (exclusionary) feature written for it. It's an all or nothing deal as far as I can tell.

  4. Ben Sibley
    Plugin Author

    Posted 1 year ago #

    I just updated the plugin so you can target all images in a post or use CSS classes to target images.

    By using CSS classes to select specific containers, you can be more precise about the images you target. As far as "removing" a border, there's no functionality for targeting a specific image and removing a border or applying a different border style.

  5. danielnichols
    Posted 1 year ago #


    could you please give me an example of what is needed in custom css and what extra coding is required in the image coding.

    thank you.

  6. Ben Sibley
    Plugin Author

    Posted 1 year ago #

    Sure, all you need to do is find the class or id of a container with images you want to target. You can do this with your browser's dev tools.

    As an example, you may find a div like this in your theme that contains the images you want to target:
    <div class="entry-content">

    In the CSS classes input box, you would enter ".entry-content" (with the period). You could target multiple classes with a comma-separated list:

    ".entry-content, .another-class, #an-id"

    All images inside those containers will receive the image borders.

  7. cmarunde
    Posted 1 year ago #

    I want to be able to decide if I need a border around an image when I write a post. Some images clearly need a border, but others clearly must not have a border for the intended effect. Both WordPress and Ben are missing the point. This all-or-nothing philosophy sounds like something out of Washington D.C. Forget freedom. Though once free to do what you wanted with images in WP, you are no longer free to do so. Is there a tax that comes with this lack of functionality? Ben, thanks for trying, but come on, do you really think the layperson like me understands WTF it means to do a CSS class?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Image Borders
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.