Remove Image and Caption Dimensions (1 post)

  1. Dominic
    Posted 4 years ago #

    Hello, I am trying to create a design that uses fluid images (i.e. no width or height attributes in the img tag). The WordPress editor, however, automatically adds width and height to any images.

    I've tried several variations on the technique that the Fluid Images plugin uses. It works great, except that it has a side effect that any caption shortcodes are striped from the image.

    After several hours of digging through the core code, I found the cause of this. The wpeditimage TinyMCE plugin checks for width attributes in the caption shortcode and the img tag, and if it doesn't find them it simply remove the caption.

    Sorry for the very long explanation. Does anybody know of a good solution for this?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Dominic
  • This topic is not resolved
  • WordPress version: 3.3-beta2-19067