Overlaying the header and content in the Astra theme can be done by modifying the theme settings and adding some custom CSS. Here’s a step-by-step guide to achieve this:
Step 1: Enable Transparent Header in Astra
Astra provides a built-in option for a transparent header which can help with overlay effects.
- Go to the WordPress Customizer:
- Navigate to Appearance > Customize.
- Header Settings:
- In the Customizer, go to Header > Transparent Header.
- Enable Transparent Header:
- Check the option Enable on Complete Website or Enable on Specific Pages if you want it for specific pages only.
- You can also customize the background and text color for the transparent header here.
Step 2: Add Custom CSS for Overlay Effect
To create the overlay effect, you’ll need to add some custom CSS. You can add this CSS either in the Customizer or in your child theme’s stylesheet.
- Open Additional CSS in Customizer:
- In the Customizer, go to Additional CSS.
- Add the Following CSS: