Skip to content

Instantly share code, notes, and snippets.

@jbutko
Created October 1, 2013 15:39
Show Gist options
  • Save jbutko/6780441 to your computer and use it in GitHub Desktop.
Save jbutko/6780441 to your computer and use it in GitHub Desktop.
WP, php, CSS, functions.php: $content_width in functions.php required
if ( ! isset( $content_width ) )
$content_width = 600;
It's also recommended to add the following CSS to your theme:
.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
max-width: 100%;
height: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment