Skip to content

Instantly share code, notes, and snippets.

@johnregan3
Last active December 19, 2018 05:29
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 johnregan3/37c88ab0f1b6909cce242b57998c2d78 to your computer and use it in GitHub Desktop.
Save johnregan3/37c88ab0f1b6909cce242b57998c2d78 to your computer and use it in GitHub Desktop.
Add Full Width Image Support in a WordPress Theme - PHP
<?php
/**
* Add Theme Support for wide and full-width images.
*
* Add this to your theme's functions.php, or wherever else
* you are adding your add_theme_support() functions.
*
* @action after_setup_theme
*/
function jr3_theme_setup() {
add_theme_support( 'align-wide' );
}
add_action( 'after_setup_theme', 'jr3_theme_setup' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment