Last active
December 19, 2018 05:29
-
-
Save johnregan3/37c88ab0f1b6909cce242b57998c2d78 to your computer and use it in GitHub Desktop.
Add Full Width Image Support in a WordPress Theme - PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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