You can insert any content inside Gutenberg Page/Post with Astra Pro’s Custom Layout module. Design your custom layout and display it at any location on selected Gutenberg pages/posts.
With this feature, you can design a layout in one place and display it on multiple pages/posts. This is useful for displaying the same information on different posts/pages to attract users. You can use this for CTAs, attractive sales offers, special discounts, important information, and so on.
You can completely customize the layout and easily put it on any page/post at the selected location.
Let’s see how this option works. Before we start, make sure to have the Astra Pro plugin is activated.
Add Inside Post/Page Content Layout
Step 1 – In the dashboard, visit Astra > Dashboard and activate the Custom Layouts module;
![Astra Custom layout](png/astra-custom-layout-2-1024x446.png)
Step 2 – Next, navigate to Dashboard > Astra > Custom Layouts and click on the “Add New” button;
![](png/custom-layouts-1024x457.png)
Step 3 – You will see the Custom Layout Type selection pop-up. Here, select the “Inside Post/Page Content” option.
![](png/inside-content-1024x481.png)
Step 4 – Now, you can design a layout that you want to display on Gutenberg pages/posts. Further, you can design it with the Block Editor, Elementor, or Beaver Builder.
Inside Pages/Posts Layout Options
If you click on the Astra icon in the top right corner, you will open the Custom Layouts Setting panel. Further down, you will find the overview of the Inside Pages/Posts Layout Type options.
![](png/layout-1024x481.png)
Location Settings
You will observe two options under Location on the post/page
- After a certain number of blocks – This option will allow you to display your custom layout after the selected number of blocks on the Gutenberg page/post. Further, you also get an option to enter – Block Number. Here you can set the number of blocks after which your custom layout can display.
![](png/location-settings-1024x481.png)
- Before a certain number of Heading blocks – This option will allow you to display your custom layout before the selected number of Heading blocks on the page/post. Note that only native Gutenberg heading blocks and heading added with the UAG plugin will be considered. Further, you also get an option to enter – Heading Block Number. Here you can set the number of Heading blocks before which your custom layout can display.
![](png/location-settings-1-1024x481.png)
Display And User Conditions
Next, you can set exact pages/posts where you want your inside pages/posts content to be used. Thus, you need to adjust Display and User Conditions.
![](png/conditions-1024x481.png)
To do this, click on the “Display On” option dropdown and select the required display locations. In addition, you can exclude some locations using the “Do Not Display On” option.
If you wish to restrict this custom layout visibility to some user roles only, you can do so with the User Roles option.
Device Visibility
This option lets you choose a device to display the custom layout. Just tick the checkbox for required devices – Desktop, Tablet, and Mobile.
![](png/device-visibility-1-1024x481.png)
Date & Time Conditions
You can set a start time and end time for layout visibility. Set a date and time duration for the layout.
The layout will be visible for the selected duration.
![](png/date-time-conditions-1024x481.png)
Done!