Skip to content

Instantly share code, notes, and snippets.

@robflaherty
Last active February 16, 2016 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robflaherty/7e06ea29c077ef33badf to your computer and use it in GitHub Desktop.
Save robflaherty/7e06ea29c077ef33badf to your computer and use it in GitHub Desktop.
Remove annoying WordPress inline width on captions
// removes WordPress inline style width on captions
add_filter( 'img_caption_shortcode_width', '__return_zero' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment