Building a hero section is an excellent way to call attention to important content on your page. It’s a super-sized piece of content that you can use to tell your story, share information about your work, or highlight a product or service. With Divi’s Fullwidth Header module, you can add a title, a subtitle, two buttons, body text, a logo image and a header image. Of course, you can also utilize the background options to add and combine images, gradients, colors, patterns, and masks. You can edit all of these settings within the one fullwidth header module’s settings instead of having to toggle between multiple image, text, and button modules.
In this tutorial, we will show you how to build an engaging and eye-catching hero section using Divi’s fullwidth header module.
Let’s get started!
Here is a preview of what we will design.
What You Need to Get Started
Before we begin, and make sure you have the latest version of Divi on your website.
Now, you are ready to start!
How to Build a Hero Section with Divi’s Fullwidth Header Module
Create a New Page with a Premade Layout
Let’s start by using a premade layout from the Divi library. For this design, we will use the Veterinarian Landing Page from the Veterinarian Layout Pack.
Add a new page to your website and give it a title, then select the option to Use Divi Builder.
We will use a premade layout from the Divi library for this example, so select Browse Layouts.
Search for and select the Veterinarian Landing Page layout.
Select Use This Layout to add the layout to your page.
Now we are ready to build our design.
Add the Fullwidth Header Module
We are going to be recreating the hero section using the fullwidth header module. Add a new fullwidth section to the page, below the existing header.
Add a fullwidth header module to the section.
Then, delete the original header section.
Customize the Fullwidth Header Module
Open the fullwidth header module settings and add the following content to the module:
Next, add the Header Image of the veterinarians with the animals.
Gradient Background Settings
Move to the background settings. Delete the original background color, then add a background gradient.
Next, select the Background Mask tab and add a background mask to the background.
Customize Text Styles
With our header content and background in place, let’s move over to the design tab to customize the text styles. First, open the title settings and customize the text as follows:
Modify the title text color, size, and spacing.
Move to the body text section and customize the font. Use Divi’s responsive settings to add a smaller text size for mobile devices.
Next, open the subtitle settings and customize the font.
Finally, change the text size for desktop and mobile (once again, use the responsive settings to add a smaller text size on mobile) and adjust the line height.
Customize Button One Styles
Next, we will customize the button styles. Start by enabling custom styles for Button One, then adjust the text size.
Add a background gradient to the button. Gradient values are as follows:
Next, customize the border settings and font settings.
Disable the Button One Icon.
Next, customize the margin and padding settings for the desktop design and add a box shadow.
Use the responsive settings to set different margin and padding values on mobile devices.
There are some text wrap issues with our button that we will fix with some custom CSS later.
Customize Button Two Styles
Button two has some different colors and spacing but is pretty similar to button one. To save some repetitive design steps, let’s copy the button one module styles to the button two module, then customize what we need to change.
First, right-click on the button one section and copy the button one styles.
Then right-click on the button two section and paste the button one styles.
Now we can customize the button two styles. Change the text color.
Customize the background gradient for button two.
Use the responsive settings to adjust the background gradient for mobile devices.
Next, adjust the margin and padding for the desktop design.
Use the responsive settings to set different margin and padding values for the mobile design.
Finally, the bulk of the design work is done. Now we need to add some custom CSS to complete the design. Move over to the Advanced tab and open the Custom CSS section.
First, let’s start with the Header Image CSS. This CSS allows the header image to display above the button.
Next, Custom CSS to the Title. We’ll set different values for the desktop and mobile views using the responsive settings.
Finally, add the following CSS to Button One and Button Two.
Here is the final design for our fullwidth header hero section.
The fullwidth header module allows you to easily create a beautiful hero section to advertise your services and tell your visitors what your website is about. The built-in settings make it easy to customize the design of every aspect of the header, and everything is in one place, so no need to toggle between multiple modules to build your hero section. For more unique hero section designs, check out this tutorial: How to Use Divi’s Background Masks and Patterns for a Hero Section. Do you use the fullwidth header module to build your hero sections? We would love to hear from you in the comments!
This content was originally published here.