Enable Gutenberg Blocks Editor for Custom Layouts in Astra theme

Custom layouts in Astra theme is a very handy feature allowing you to display layout or content at a specific location or parts of the theme layout. By default, Gutenberg block editor is not enabled for custom layouts in the Astra theme. However, you can enable it to use blocks editor for creating content using custom layouts in the Astra theme.

Activate Blocks Editor for Astra Custom Layouts

In the WordPress Dashboard, go to Appearance > Theme Editor. Then open functions.php file of your Astra Child theme and add the following code at the end.

Save changes and now blocks editor option should appear for posts under “Custom Layouts” option of the Astra theme.

Share this Tutorial

Leave a Comment