Using the Site Builder module available with Astra Pro, you can design a custom header. Please refer document, to begin with, the Custom Layout module.
This is a premium feature available with the Astra Pro Addon plugin. To use these pro features, you need to have the Astra theme along with the Astra Pro Addon installed on your website.
Selecting a Header layout will replace the current site header with custom layout content. In this case, any settings from the customizer will not be applied to a custom header.
You can design headers with any page builder and set them on the entire site or a particular page/post with display rules.
How to Create a Header Layout
Before you start using the Site Builder, make sure youโve installed and activated the Astra Pro plugin. Also, update both the Astra Theme and Astra Addon to the latest versions to access the Site Builder.
After that, go to the WordPress dashboard, click on Astra, then Astra Pro Modules, and switch on the Site Builder toggle.
Once you switch on the Site Builder toggle, then you can see the Site Builder under Astra in the wordpress dashboard.
After clicking on the Site Builder, you can explore the revamped Site Builder through the All Layouts Section.
From the site builder dashboard, you can create a header template.
After clicking the “Create New” button, you will be redirected to the page editor where you can access the Site Builder Settings.
If you click on the Astra icon in the top right corner, you will open the Site Builder Setting panel. Further down, you will find the overview of the Header Layout Type options.
Under sticky settings, you can choose your custom header to be sticky or not. If you set the header to stick on the top of the page, you can decide whether it should shrink or not. Enabling shrink effect will remove all top and bottom space from the header. Also, you can choose to stick the header on Desktop and/or mobile.
You can choose your custom header to display on the entire website or specific pages/posts with the Display On option. You can even exclude a particular page/post by adding them to the Exclusion Rule.
You can decide a user role for which custom header should be visible. For excluded users, the header set with customizer options will be visible.
For example: If you want to display a custom header on the Entire Website except for the 404 page for all Logged In users, you need to set the following options โ
Display On: Entire Website
Do Not Display On: 404 Page
User Roles: Logged In
Additionally, you can see the Device Visibility option. This option lets you choose a device to display the header layout. Just tick the checkbox for required devices โ Desktop, Tablet, and Mobile.
And lastly 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.
Once the time duration ends, the custom layout set as the header will be disabled. Thus the header designed with Astra customizer will be automatically displayed further on.