Created
May 16, 2022 22:19
-
-
Save takunagai/4b9e14c351c07ad25018c52c14dee771 to your computer and use it in GitHub Desktop.
[Change the default content width for Astra theme] Change the default content width for Astra theme #WordPress #Astra
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
/** | |
* Change the default content width for Astra theme | |
* @ref { @link https://wpastra.com/docs/improved-block-editor-experience/#change-the-default-content-width-for-the-theme } | |
* To update the wide width for your layouts, | |
* update Container Width from Customizer > Global > Container | |
*/ | |
function astra_update_block_content_size( $content_size ) { | |
return '840px'; // Default 910px | |
} | |
add_filter( 'astra_block_content_width', 'astra_update_block_content_size' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment