Support » Fixing WordPress » Bulk remove styling from all previous post images?

  • When I first started my blog I made the mistake of adding a border to every post image via the WordPress image editor. What I realize I should have done was use CSS instead. Now that I’m older and wiser, I’d like to strip this formatting from all previous post images and instead use CSS to add margins.

    Is there a plugin that will allow me to remove formatting from post images in bulk? I have over 100 posts with over 1000 images and can’t go back and edit them all manually! Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You could try any custom css plugin, like the one in jetpack for example. If your theme already a custom css feature, try using it.

    Thread Starter PlantPropaganda

    (@plantpropaganda)

    Hi santeven, I actually don’t have a problem with coding the custom CSS. What I need to do is strip the styling from the current post images before doing so.

    For example, I made a post last year and set each individual images’ margin to 1px solid using the WordPress editor. Now, if I add a 1px border to, say, post .img using CSS, those old images will now have a 2px border and all images going forward will have a 1px border.

    I think you can use the jetpack custom css, with some more specific selector to override, effectively strip and replace the existing styling.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bulk remove styling from all previous post images?’ is closed to new replies.