Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Hmmm... is being able to use the visual editor a requirement? If you only use the HTML editor, a filter on img_caption_shortcode works fine... Commented Nov 6, 2011 at 14:10
  • @goldenapples, yeah, I don't want to loose the visual editor as I am going to be having non-technical people edit the site. Thanks for the suggestion though. Any other ideas? Commented Nov 8, 2011 at 0:36
  • Dominic, can you provide the code for "a filter on img_caption_shortcode to prevent a width style from being used there"? This is exactly what I need, but I don't know how to write that filter. Commented Dec 16, 2011 at 15:15
  • @Wendy, hmm, I can't paste the whole thing in a comment. If you want to ask another question and give me a link to it, I'll post it as answer. Commented Dec 18, 2011 at 22:51
  • In case you didn't want to go through all of that, I basically just modified the Codex example. Commented Dec 18, 2011 at 22:58