Astra be WordPress The widely used lightweight theme, Upgrade
![Image [1]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410140932958-image.png)
Enabling the Site Builder Module
The following preparations need to be completed before activation:
- mounting Astra thematic
- Install and activate the Astra Pro plug-in
- exist WordPress Go to Astra > Astra Pro Modules in the console to enable the Site Builder module
![Image [2]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410140946337-image.png)
Once enabled, the Site Builder item will appear in the menu.
Site Builder Module Overview
Site Builder provides several structural editing portals, for example:
- Header
- Footer
- 404 Pages
- Hooks
- Single and Archive templates
![Image [3]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410141055952-image.png)
New layouts can be created in these areas, as well as previewing and editing existing content. The operation is intuitive and suitable for scenarios where the structure of the site is frequently adjusted.
Two ways to create a Hook layout
Inserted using the code editor
- Open Site Builder
- Go to the Hooks module and click "Create Layout"
![Image [4]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410141301602-image.png)
- Enable Code Editor
![Image [5]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410141343477-image.png)
/* CSS style area */
</style
This approach is suitable for adding structural or functional code, such as inserting the HTML Block or style rules.
Designing Content with the Page Builder
Supports binding to a specified hook location after designing the graphic content using a page builder such as Beaver Builder or Elementor.
![Image [6]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410141446815-image.png)
Such as designing a promotional banner or subscription form and displaying it below the blog content.
![Image [7]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410141504379-image.png)
Note: Make sure the builder supports Site Builder Type. If it doesn't load, try refreshing the fixed link settings.
Configuration options for Hooks layout
In the upper right corner of the editing screen, click Astra icon to access the Settings panel to configure the Hook location:
- Placement: select or enter a hook name (e.g.
astra_entry_content_after) - Priority: the smaller the value, the higher the execution order.
- Spacing: set the spacing between the top and bottom of the content
![Image [8]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410141601336-image.png)
These options help the content to be accurately positioned on the page.
Setting display conditions
Site Builder's Hooks support a variety of display condition controls:
- Display On: Select which pages to display
- Do Not Display On: Set on which pages not to be displayed.
- User Roles: limited access roles (e.g., visitors only)
- Device Visibility: Desktop, Tablet, Mobile can be checked.
- Time period control: can set the start time and end time
![Image [9]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410141611279-image.png)
Example: Wish to add a promotional message that is displayed throughout the site, but not in the 404 The page shows that it is only available to unlogged-in users
The configuration is as follows:
- Display On: Entire Website
- Do Not Display On: 404 Page
- User Roles: Logged Out
![Image [10]-Astra Site Builder Hooks Tutorial: Customizing WordPress Header and Footer with Content Layout](https://www.361sale.com/wp-content/uploads/2025/04/20250410141620295-image.png)
This approach lends itself to controlling the visibility of content on demand.
summarize
leverage Astra Pro The Site Builder module allows you to flexibly insert customized content and manage the structure and layout of your website. Whether it's a code paragraph or a graphic module, you can fulfill your presentation needs without relying on additional plug-ins.
Link to this article:https://www.361sale.com/en/49581The article is copyrighted and must be reproduced with attribution.




















![Emoji[wozuimei]-Photonflux.com | Professional WordPress repair service, worldwide, rapid response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![Emoticon[baoquan] - Photon Wave Network | Professional WordPress Repair Services, Worldwide Coverage, Rapid Response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments