How to Place Hover Tooltips Anywhere on Your Page with Divi

Last Updated on September 16, 2022 by 10 Comments

How to Place Hover Tooltips Anywhere on Your Page with Divi
Blog / Divi Resources / How to Place Hover Tooltips Anywhere on Your Page with Divi

Every week, we provide you with new and free Divi layout packs which you can use for your next project. For one of the layout packs, we also share a use case that’ll help you take your website to the next level.

This week, as part of our ongoing Divi design initiative, we’re going to show you how to create and place hover tooltips anywhere on your page with Divi. This is a great way to share side-information with your visitors without directly including it on the page right away.

Let’s get to it!

Preview

Before we dive into the tutorial, let’s take a quick look at the outcome across different screen sizes.

Desktop

hover tooltips

Mobile

hover tooltips

Download The Hover Tooltips Layout for FREE

To lay your hands on the free hover tooltips layout, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our newsletter 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.

Create New Page Using Dog Walker Homepage Layout

Add New Page

The first thing you will need to do is create a new page by going to Pages > Add New. Continue by giving your page a title, publishing the page and switching over to Visual Builder.

hover tooltips

Upload Dog Walker Landing Page

Upload the landing page layout to your page next. Although we’ll be using this layout pack to go through the hover tooltips technique, you can make this approach apply on any kind of layout you’re working on.

hover tooltips

Create Hover Tooltips Design

Add New Row to Bottom of Section

Column Structure (Decide How Many Tooltips You Need)

Once you’ve uploaded the landing page layout, it’s time to start creating the hover tooltips. We’ll add them to a specific spot on the page but you can place them anywhere using the transform translate options. Locate the following section on your page and add a three-column row to the bottom of it:

hover tooltips

Row Max Width

To make sure the tooltip designs appear on the right spot, we’re going to use the same row max width as was used for the row that comes above it. Go to the row’s sizing settings and adjust the max width accordingly:

  • Max Width: 1280px

hover tooltips

Spacing

To reduce the space that is taken up by the row container, we’re going to remove the default top and bottom padding in the spacing settings.

  • Top Padding: 0px
  • Bottom Padding: 0px

hover tooltips

Overflows

We’re also making sure the row’s overflows are visible in the advanced tab.

  • Horizontal Overflow: Visible
  • Vertical Overflow: Visibile

hover tooltips

Add Tooltip Text Module to Column 1

Add Content to Content Box

Question Mark Span

Time to start creating the first tooltip design! We’ll use a Text Module. We’ll add a span (for the tooltip icon) and a div (for the tooltip content) inside the content box. This will give us more freedom to style the hover tooltip icon and tooltip content individually. Start by adding the span and assigning the class ‘question-mark’ to it.

hover tooltips

Tooltip Div

Continue by adding a div to the content box with the ‘tooltip-content’ class. Add the tooltip content of your choice in this div.

hover tooltips

Text Settings

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

  • Text Font: Open Sans
  • Text Color: #ffffff

hover tooltips

H3 Text Settings

Modify the H3 text settings as well.

  • Heading 3 Font: Amatic SC
  • Heading 3 Text Color: #ffffff
  • Heading 3 Text Size: 30px

hover tooltips

Sizing

We’re also playing around with the width and height of the module to create the hover effect.

  • Width: 300px
  • Height: 42px

hover tooltips

Spacing

Add some top padding too.

  • Top Padding: 10px

hover tooltips

Default Visibility

Now, in the default state, we want everything that goes below the tooltip icon to be hidden. That’s why we’ll hide the overflows in the advanced tab.

  • Horizontal Overflow: Hidden
  • Vertical Overflow: Hidden

hover tooltips

Hover Visibility

On hover, however, we want everything to show up. We’ll do that by making the overflows visible on hover.

  • Horizontal Overflow: Visible
  • Vertical Overflow: Visible

hover tooltips

Add Code Module Below Text Module

Now that we’ve styled the module, we still need to style the span and div inside the content box using the CSS classes we’ve assigned to it. Add a Code Module right below the tooltip Text Module.

hover tooltips

Add CSS Code to Style Divs in Text Module

Add the following lines of CSS code to style the different parts of the Text Module:

<style>
.question-mark {
background-color: #000;
padding: 10px 16px 10px 16px;
border-radius: 500px;
}

.tooltip-content {
background-color: #ee6a5b;
padding: 20px;
border-radius: 5px;
}</style>

hover tooltips

Clone Tooltip Text Module Twice & Place in Remaining Columns

Once you’ve completed the first column, you can clone the tooltip Text Module twice and place the duplicates in the two remaining columns of the row.

hover tooltips

Change Tooltip Content

Make sure you change the tooltip content of each duplicate.

hover tooltips

Change Tooltip Position (Using Transform Translate)

Tooltip #1

Last but not least, we’ll need to reposition the tooltips wherever we want on the page. To achieve the exact same outcome that was shown in the preview of this post, open the first tooltip Text Module and apply the following transform translate values:

  • Right: -450px (Desktop), -2000px (Tablet), -1900px (Phone)

hover tooltips

Tooltip #2

Move on to the tooltip Text Module in the second column and change the transform translate values as follows:

  • Right: -400px (Desktop), -1300px (Tablet), -1250px (Phone)

hover tooltips

Tooltip #3

Do the same thing for the tooltip Text Module in column 3 and you’re done!

  • Right: -500px (Desktop), -600px (Tablet & Phone)

hover tooltips

Preview

Now that we’ve gone through all the steps, let’s take a final look at the outcome across different screen sizes.

Desktop

hover tooltips

Mobile

hover tooltips

Final Thoughts

In this post, we’ve shown you how to create and place hover tooltips anywhere on your page without the need for an additional plugin. This is a great way to add additional information without directly including it on your page. This use case tutorial is part of our ongoing Divi design initiative, where we try to put something extra into your design toolbox each and every week. If you have any questions, make sure you leave a question 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.

Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! 👇

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow 👇

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How 👇

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

New Starter Site for Construction (Quick Install)

New Starter Site for Construction (Quick Install)

Posted on October 29, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post
Divi 5 Update: Public Alpha Version 2

Divi 5 Update: Public Alpha Version 2

Posted on October 28, 2024 in Divi Resources

The Divi 5 Public Alpha is available for testing. As we progress towards the final release, we’ll update Divi 5 every two weeks, appearing as a standard update in your WordPress dashboard. If you use Divi 5, you’ll notice an update notification for Public Alpha Version 2 today. We have...

View Full Post
Divi Plugin Highlight: DiviFlash

Divi Plugin Highlight: DiviFlash

Posted on October 27, 2024 in Divi Resources

DiviFlash, a powerful premium plugin, offers a suite of tools to help you easily create beautiful, professional Divi websites. From advanced modules and layout packs to customizable sections and more, DiviFlash lets you design websites that captivate and engage your audience. In this post,...

View Full Post

10 Comments

  1. Hi! How installa The Hover Tooltips Layout (json)?

  2. Just a thought, you probably wanted to say Code module here “Add CSS Code to Style Divs in Text Module”.
    Don’t have to approve comment, this is for your reference only.
    And thanks for great tutorial!

  3. I do like this but perhaps like @rick I wonder if there is a problem because there are so many different size devices. The break point, for example, will be different for a mini iPad than that for a standard iPad.

  4. I would like to use this for technical terms on a website – as Wikipedia does. The only problem I can see is getting the icon to stay in the right place in a text module as it would shift on different screen sizes. Any ideas?

  5. Great! Enjoyed it.

  6. I would like to use this for technical terms on a website – as Wikipedia does. The only problem I can see is getting the icon to stay in the right place in a text module as it would shift on different screen sizes. Any ideas?

  7. This is needed as a standard Divi module

    • Thanks for the suggestion, David.

  8. I like this a lot. Great job.

    • Thanks, Britt, glad you’ve enjoyed the tutorial! 🙂

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today