Last active
May 17, 2019 04:38
-
-
Save phpbits/1bc8134fc78354a31c859f5168ac67e1 to your computer and use it in GitHub Desktop.
Change Gutenberg Blocks Width to Match Page Template
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 template blocks width | |
add_theme_support('editorskit-template-block-sizes', array( | |
'default' => array( | |
'default' => '700px', | |
'wide' => '1000px', | |
'full' => '1200px', | |
), | |
'page-templates/landing.php' => array( | |
'default' => '500px', | |
'wide' => '900px', | |
'full' => '1200px', | |
) | |
)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment