Skip to content

Instantly share code, notes, and snippets.

@zgordon
Created January 11, 2018 02:16
Show Gist options
  • Save zgordon/f42caa3c5e0793ad1cc23d8517dfa7d2 to your computer and use it in GitHub Desktop.
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.
<?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