Skip to content

Instantly share code, notes, and snippets.

@takunagai
Created May 16, 2022 22:19
Show Gist options
  • Save takunagai/4b9e14c351c07ad25018c52c14dee771 to your computer and use it in GitHub Desktop.
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
/**
* 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