How to Create Sticky Section Titles with Divi | Elegant Themes Blog

The way you design your pages is a direct reflection of your brand. That’s why at some point in your design brainstorm, you might want to find and add unique design elements to your website that’ll help generate a pattern throughout all pages. One unique way to highlight your website’s identity is by using sticky section titles. These sticky section titles will follow your visitors’ navigation behavior by sticking to the top of their browser. In this tutorial, we’ll show you how to create sticky section titles using Divi’s sticky options. The sticky section titles will be less emphasized once your visitors are scrolling, but will be visible enough for them to recognize the section they’re at. You’ll be able to download the JSON file for free as well!

Let’s get to it.

Download The Layout for FREE

To lay your hands on the free layout, you will first need to download them using the button below. To gain access to the download you will need to subscribe to our Divi Daily email list by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

Join the Divi Newsletter and we will email you a copy of the ultimate Divi Landing Page Layout Pack, plus tons of other amazing and free Divi resources, tips and tricks. Follow along and you will be a Divi master in no time. If you are already subscribed simply type in your email address below and click download to access the layout pack.

You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!

1. Create Section Design

Start by adding a new section to the page you’re working on. Open the section settings and apply some top and bottom padding.

Continue by adding a new row using the following column structure:

Without adding any modules yet, open the row settings and modify the sizing settings as follows:

Add Text Module to Column

Add H2 Content

Now, add a Text Module to the row’s column and insert some H2 content of your choice.

H2 Text Settings

Move on to the module’s design tab and modify the H2 text settings as follows:

Add another row right below the previous one using the following column structure:

Open the row settings and change the sizing settings accordingly:

Add Text Module to Column 2

Add Content

Then, add a first Text Module to column 2 with some descriptive content of your choice.

Text Settings

Move on to the module’s design tab and change the text settings accordingly:

Modify the sizing settings across different screen sizes too.

Add Image Module to Column 2

Upload Image

On to the next module, which is an Image Module. Upload an image of your choice.

Add Button Module to Column 2

Next up, we have a Button Module. Add some copy of your choice.

Button Settings

Change the module’s button settings accordingly:

sticky section titles

And complete the module settings by adding some custom padding values across different screen sizes.

Add Text Module to Column 2

Add Bullet List Content

The next and last module we’ll add to this column is another Text Module. Add the list items of your choice to the content box.

Text Settings

Move on to the module’s design tab and change the text settings accordingly:

Ordered List Text Settings

Make some changes to the ordered list text settings too.

Add Black Text Color to List Items Individually in Content Box

Then, we’ll turn the items back to black by navigating to the content box and manually adding a black text color to each one of the list items.

We’ll apply some custom margin and padding values to the module’s spacing settings too.

2. Apply Sticky Effect to Section Title

Add Sticky Effect to Row

Now that we’ve set up the foundation of our design, it’s time to make the effect happen that you were able to see in the preview of this post. To do that, we’ll turn our entire first row sticky by opening the row settings, going to the advanced tab and applying the following settings:

Modify Row Z Index

To make sure the sticky row remains below the second row in our design, we’ll assign a z index of “1” to our sticky row. When scrolling, you’ll see the sticky row and its Text Module go below the second row’s modules.

Add Column 2 Blend Mode (Row #2)

However, as you could notice in the preview of this post, the sticky section title is visible at all times. To achieve that effect, we’ll add a blend module to the second column of our second row. This will help blend the sticky row and the modules in the second row, while still maintaining a low z index for the sticky row.

Change Sticky H2 Text Settings

We’ll apply some sticky styles to our Text Module in row #1 too. Start by changing the H2 text color in a sticky state and apply a custom text shadow as well.

Change Sticky Text Module Spacing

We’ll change the module’s position as well using some negative sticky left margin in the spacing settings

Increase Text Module Transition Duration

And to assure a smooth transition, we’ll increase the transition duration in the advanced tab.

Now that we have one completed section, including sticky section title, we can reuse the entire section up to as many times as we want by cloning it.

Change Title Content

Make sure you change the title content in the first row.

Match Text Size to Character Length

Depending on how many characters your new H2 title has, you might want to adjust the heading 2 text size.

Change All Other Content & Images

And of course, you’ll need to change all other content in the duplicate section as well. That’s it!

In this post, we’ve shown you how to get creative with Divi’s sticky options. More specifically, we’ve shown you how to create sticky section titles that follow your visitors throughout the design you’re creating. This effect gives your design an extra dimension and a seamless transition. You were able to download the JSON file for free as well! If you have any questions or suggestions, feel free to leave a comment in the comment section below.

If you’re eager to learn more about Divi and get more Divi freebies, make sure you subscribe to our email newsletter and YouTube channel so you’ll always be one of the first people to know and get benefits from this free content.

This content was originally published here.