(202) 750-1910
  • Facebook
  • X
  • Instagram
  • TikTok
  • Yelp
  • Google
  • Pinterest
  • WhatsApp
  • Threads
  • Facebook
  • X
  • Instagram
  • TikTok
  • Yelp
  • Google
  • Pinterest
  • WhatsApp
  • Threads
0 Items
Ask the Egghead, Inc.
  • Home
  • About
    • Reviews
    • Awards
    • Careers
    • Partners
    • Systems Status
  • Services
    • Website Design
    • Managed Hosting
    • Accessibility Compliance
    • Content Builder
    • Multi-Language Websites
    • SEO
    • Social Media
    • Premier Property Promotion
    • Reputation & Review Management Services
    • Low Code/No Code Solutions for MVP Development
    • Citation Builder
    • Pricing
    • Get A Quote
  • Portfolio
  • Website Audit
  • Blog
  • Invest Local
  • Contact
Select Page

How to Stack Sticky Headings on Scroll for Unique Anchor Link Navigation in Divi

Divi’s sticky options continue to open doors for new design and functionality. In this tutorial, we are going to design a creative way to lead users through the content of a webpage using sticky headings as anchor links. The sticky headings stick to the top and bottom of the browser window as a helpful identifier of the content in view as well as the content that resides above or below. By adding anchor links to these sticky headers, we can allow users to click those sticky headers in order to jump to the corresponding section. This is a great way to boost the user experience on pages that display a process (like steps for a recipe).

To build the sticky heading anchor link navigation, we are going to use only Divi’s built-in options. The functionality on desktop and mobile are both unique. And the results may surprise you!

Let’s get started!

Sneak Peek

Here is a look at the sticky headings with the anchor link navigation we’ll build in this tutorial.

Download the Sticky Headings Anchor Link Navigation Layout for FREE

To lay your hands on the designs from this tutorial, you will first need to download it 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.

Download the Files
.et_bloom .et_bloom_optin_1 .et_bloom_form_content { background-color: #4843d2 !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container .et_bloom_form_header { background-color: #ffffff !important; } .et_bloom .et_bloom_optin_1 .carrot_edge .et_bloom_form_content:before { border-top-color: #ffffff !important; } .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:before, .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:before { border-top-color: transparent !important; border-left-color: #ffffff !important; }
@media only screen and ( max-width: 767px ) {.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:before { border-top-color: #ffffff !important; border-left-color: transparent !important; }.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:after { border-bottom-color: #ffffff !important; border-left-color: transparent !important; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_fields i { color: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:before { background: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !important } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 strong { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; }.et_bloom .et_bloom_optin_1 .et_bloom_form_container p, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p strong, .et_bloom .et_bloom_optin_1 .et_bloom_form_container form input, .et_bloom .et_bloom_optin_1 .et_bloom_form_container form button span { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; } p.et_bloom_popup_input { padding-bottom: 0 !important;}

Download For Free

Download For Free

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!

 

To import the section layout to your Divi Library, navigate to the Divi Library.

Click the Import button.

In the portability popup, select the import tab and choose the download file from your computer.

Then click the import button.

divi notification box

Once done, the section layout will be available in the Divi Builder.

Let’s get to the tutorial, shall we?

What You Need to Get Started

To get started, you will need to do the following:

  • If you haven’t yet, install and activate the Divi Theme.
  • Create a new page in WordPress and use the Divi Builder to edit the page on the front end (visual builder).
  • Select the option “Choose a Premade Layout”.

divi sticky header anchor link navigation

  • From the Load from Library popup, find and upload the Meal Kit Recipe Page layout from the Meal Kit Layout Pack.

divi sticky header anchor link navigation

Part 2: Modifying the Layout

Deleting Rows

Once the layout has been loaded, delete the bottom two rows under the second section labeled Instructions.

divi sticky header anchor link navigation

Now you should have one row with the content for “step-01” of the recipe.

divi sticky header anchor link navigation

Creating a New Row and Filling it with Content

The sticky headings are going to reside in the left column of a two-column row. To create this setup, add a new 0ne-fourths three-fourths column row under the current row.

divi sticky header anchor link navigation

Using mulitselect (hold cmd/ctrl and click), select the three modules that contain the content for step one of the recipe in the premade layout row above.

Then drag those modules in the right column of the new row you just created.

Delete the empty row above when done.

Part 3: Creating Sticky Headings for Each Row

This layout will include four rows, each containing a sticky header in the left column. After creating the first sticky heading for the first row, we will duplicate the rows to create each additional row of content.

Creating the Sticky Heading for the First Row (step one)

To create the first sticky heading for step one, add a new text module to the left column of the row.

divi sticky header anchor link navigation

Then update the design settings for the H4 heading text as follows:

  • Heading 4 Font Weight: Bold
  • Heading 4 Font Style: TT
  • Heading 4 Text Alignment: Center
  • Heading 4 Text Size: 15px
  • Heading 4 Letter Spacing: 3px
  • Heading 4 Line Height: 2em

divi sticky header anchor link navigation

Then update the spacing and rounded corners as follows:

  • Margin: 0px
  • Padding: 10px
  • Rounded Corners: 3px

divi sticky header anchor link navigation

NOTE: Because of the text size (15px), line height (2em which equals 30px), the padding (10px), and the default H4 bottom margin (10px), the resulting height of the text module is 50px (30px + 10px + 10px). This is important to note so that we know to how much to offset each stick top and bottom position going forward.

Under the advanced tab, update the following sticky options:

  • Sticky Bottom Offset: 150px (desktop), 0px (tablet)
  • Top Sticky Limit: Section (desktop), None (tablet)
  • Bottom Sticky Limit: Section (desktop), Row (tablet)
  • Offset From Surrounding Sticky Elements: NO

divi sticky header anchor link navigation

This technique will make sure our anchor links pull the row to the top of the browser window when clicking the sticky heading.

Next, update the background color in the sticky state:

  • Sticky Background Color: #febd2d

divi sticky header anchor link navigation

Then update the Z Index on the sticky state:

  • Z Index (sticky): 10003

divi sticky header anchor link navigation

This will make sure the heading will stay above other sticky headings whenever they stack on mobile.

Update Mock Content

Before we duplicate our row for more steps, take out the H4 heading in the top text module in column 2. Then copy the second text module (with the paragraph text) in column 2 and paste it three times below the image module. This will give us more content to scroll through.

divi sticky header anchor link navigation

Duplicate Row 1

To create the second row for step two, duplicate row 1.

divi sticky header anchor link navigation

Create Sticky Heading for Second Row (Step Two)

Open the text settings for the heading in column 1 of the duplicate (second) row, and change the H4 text to “Step-02”.

divi sticky header anchor link navigation

Then update the sticky options for the text as follows:

  • Sticky Top Offset: 50px (desktop), 0px (tablet)
  • Sticky Bottom Offset: 100px (desktop)
  • Top Sticky Limit: Section (tablet)

divi sticky header anchor link navigation

Then update the Z Index for the sticky state:

  • Z Index (sticky): 10002

divi sticky header anchor link navigation

Duplicate Row 2

To create the third row for step three, duplicate row 2.

divi sticky header anchor link navigation

Create Sticky Heading for Third Row (Step Three)

Open the text settings for the heading in column 1 of the duplicate (third) row, and change the H4 text to “Step-03”.

divi sticky header anchor link navigation

Then update the sticky options for the text as follows:

  • Sticky Top Offset: 100px (desktop)
  • Sticky Bottom Offset: 50px (desktop)

divi sticky header anchor link navigation

Then update the Z Index for the sticky state:

  • Z Index (sticky): 10001

divi sticky header anchor link navigation

Duplicate Row 3

To create the fourth row for step four, duplicate row 3.

divi sticky header anchor link navigation

Create Sticky Heading for Fourth Row (Step Four)

Open the text settings for the heading in column 1 of the duplicate (third) row, and change the H4 text to “Step-04”.

divi sticky header anchor link navigation

Then update the sticky options for the text as follows:

  • Sticky Top Offset: 150px (desktop)
  • Sticky Bottom Offset: 0px (desktop)

divi sticky header anchor link navigation

Then update the Z Index for the sticky state:

  • Z Index (sticky): 10000

divi sticky header anchor link navigation

Update Column Z Index for Each Sticky Heading

Even though we update the z index for each stick heading, we also need to update the z index for the parent column of each heading to make sure the stacking order on mobile works.

To do this, open the settings for each parent column of each sticky heading (step 1-4), and update the column z-index for each as follows:

Row 1, Column 1

  • Z Index: 20

Row 2, Column 1

  • Z Index: 19

Row 3, Column 1

  • Z Index: 18

Row 4, Column 1

  • Z Index: 17

divi sticky header anchor link navigation

Part 3: Creating Sticky Heading Anchor Links

To create the anchor links for each heading, we need to assign a CSS ID to the Row that corresponds to the module URL for the heading.

Step One Anchor Link

To create the anchor link for the first sticky heading in row 1, open the settings for row 1 and add the following CSS ID:

  • CSS ID: one

divi sticky header anchor link navigation

Then open the text module settings for the “step-01” heading and add the following module link URL:

  • Module Link URL: #one

divi sticky header anchor link navigation

Step Two Anchor Link

To create the anchor link for the second sticky heading in row 2, open the settings for row 2 and add the following CSS ID:

  • CSS ID: two

divi sticky header anchor link navigation

Then open the text module settings for the “step-02” heading and add the following module link URL:

  • Module Link URL: #two

divi sticky header anchor link navigation

Step Three Anchor Link

To create the anchor link for the third sticky heading in row 3, open the settings for row 3 and add the following CSS ID:

  • CSS ID: three

divi sticky header anchor link navigation

Then open the text module settings for the “step-03” heading and add the following module link URL:

  • Module Link URL: #three

divi sticky header anchor link navigation

Step Four Anchor Link

To create the anchor link for the fourth sticky heading in row 4, open the settings for row 4 and add the following CSS ID:

  • CSS ID: four

divi sticky header anchor link navigation

Then open the text module settings for the “step-04” heading and add the following module link URL:

  • Module Link URL: #four

divi sticky header anchor link navigation

divi sticky header anchor link navigation

Final Results

Final Thoughts

Sticky headings alone are helpful for keeping users aware of the content in view. And, creating sticky headings as anchor link navigation is a uniquely effective way to boost user experience in a way that engages users to navigate through steps quickly. Hopefully, this will become a helpful design for any page that walks users through a process.

I look forward to hearing from you in the comments.

Cheers!

.inline-code{padding: 0px 4px; color: crimson; font-family: Monaco,consolas,bitstream vera sans mono,courier new,Courier,monospace!important} video.with-border {border-radius: 8px;box-shadow: 0 8px 60px 0 rgba(103,151,255,.11), 0 12px 90px 0 rgba(103,151,255,.11);display:block;margin: 0 auto;}

The post How to Stack Sticky Headings on Scroll for Unique Anchor Link Navigation in Divi appeared first on Elegant Themes Blog.

Recent Posts

  • Busting the Biggest WordPress Myths

    Busting the Biggest WordPress Myths

  • You’re Not Too Small for a Great Website

    You’re Not Too Small for a Great Website

  • Top Web Design Trends to Watch in 2025

    Top Web Design Trends to Watch in 2025

  • Lock Down Your Site: WordPress Security Made Easy

    Lock Down Your Site: WordPress Security Made Easy

  • Is It Time to Redesign Your Website?

    Is It Time to Redesign Your Website?

  • Don’t Ignore These Website Pages

    Don’t Ignore These Website Pages

  • AI Tools in Web Design: Hype vs. Real Help

    AI Tools in Web Design: Hype vs. Real Help

  • How to Make Your Website Feel Brand New Again

    How to Make Your Website Feel Brand New Again

  • No Leads? Here’s Why (And How to Fix It)

    No Leads? Here’s Why (And How to Fix It)

  • 7 Website Mistakes That Hurt Your Business

    7 Website Mistakes That Hurt Your Business

Awards

  • Clutch Top Web Design Company Medical Websites 2024

    Clutch Top Web Design Company Medical Websites 2024

  • Clutch Top Web Design Company Government Websites 2024

    Clutch Top Web Design Company Government Websites 2024

  • UpCity National Excellence Winner 2024

    UpCity National Excellence Winner 2024

  • UpCity National Excellence Winner 2023

    UpCity National Excellence Winner 2023

  • UpCity National Excellence Winner 2022

    UpCity National Excellence Winner 2022

  • UpCity Local Excellence Washington DC 2021

    UpCity Local Excellence Washington DC 2021

  • UpCity Top Designer 2021

    UpCity Top Designer 2021

  • DesignRush Accredited Agency 2021

    DesignRush Accredited Agency 2021

  • Clutch Top Company Washington DC 2021

    Clutch Top Company Washington DC 2021

  • Digital.com Best SEO Firms Washington DC 2021

    Digital.com Best SEO Firms Washington DC 2021

Ask-the-Egghead-logo

Capability Statement

View/Download

Ask the Egghead

200 Massachusetts Ave NW
8th Floor Suite 133
Washington, DC 20001
(202) 750-1910

Ask the Egghead

399 Boylston Street
Suite 685
Boston, MA 02116
(617) 221-8300

Quick Links

  • Website Design
  • Social Media
  • SEO
  • Managed Hosting
  • Privacy Policy
  • Investors
  • Facebook
  • X
  • Instagram
Designed by The Egghead © 2015-2025 Ask the Egghead, Inc.