Created
January 11, 2018 02:16
-
-
Save zgordon/f42caa3c5e0793ad1cc23d8517dfa7d2 to your computer and use it in GitHub Desktop.
Example of how to include wide align support for Gutenberg blocks in your WordPress Theme.
This file contains hidden or 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 | |
// Wrapper function for add_theme_support setup | |
function mytheme_setup_theme_supported_features() { | |
// Add theme support for wide align blocks | |
add_theme_support( 'align-wide' ); | |
} | |
// Hook wrapper function into WP once theme is ready | |
add_action( 'after_setup_theme', 'mytheme_setup_theme_supported_features' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment