Advertise Here

How To Create Tooltips With Divi 5’s Interactions

by | Sep 23, 2025 | divi, Divi resources, elegant themes, Etcetera, wordpress | 0 comments


Occasionally a label or icon wishes one further line of context, however you don’t wish to crowd the web page. Tooltips are ideal for shape hints, characteristic explanations, and delicate onboarding.

On this submit, we’ll display you easy methods to create responsive hover/faucet tooltips in Divi 5 with Interactions. Let’s get to it!

What Are Tooltips (And Why Use Them)?

Tooltips are small messages that seem while you hover over or click on a webpage. Transfer your cursor over a button; a small field would possibly say what it does. Click on an icon, and chances are you’ll see a snappy observe.

Web pages use tooltips to avoid wasting area. As a substitute of filling the web page with explanations, they just disclose main points when wanted. Some websites additionally use them to spotlight new options chances are you’ll disregard. The most productive ones stay the textual content temporary, in most cases below 180 characters.

When designed neatly, tooltips lend a hand with out stepping into the best way. They resolution fast questions so folks can simply stay transferring thru a website online.

Tooltips And Extra, Made Simple With Divi 5’s Interactions

Divi 5 comprises a brand spanking new characteristic known as Interactions that essentially adjustments how web sites reply to guests. Interactions allow you to create dynamic behaviors the place parts for your web page react to consumer movements, all with out writing any code.

The brand new Interactions choices are out there during the Complicated tab of any module, row, column, or segment in Divi’s visible builder.

The machine has 3 portions: triggers, results, and goals. Triggers are consumer movements like clicking, soaring, or scrolling. Results are what occur subsequent, like appearing hidden content material, converting colours, or transferring parts. Goals are the portions of your web page that get affected.

Tooltips are only one use case. The similar equipment can toggle FAQ sections, animate hero content material on scroll, and construct pop-ups with out the desire for customized code.

The interactions robotically paintings throughout desktop, pill, and cell gadgets.

Construction Your Tooltip In Divi 5

Now that you realize what Interactions can do, it’s time to construct your first tooltip. The method is simple and occurs completely inside of Divi’s visible builder. You’ll paintings with the similar interface you know, simply with some new choices that regulate how parts reply to consumer movements.

1. Developing Your Tooltip Content material First

Sooner than you put up any interactions, construct the true tooltip content material for your web page. Get started by means of including a Textual content Module for your segment and typing your tooltip message. You’ll additionally use an Icon Record Module for tooltips. Stay the textual content and icons brief and useful; round 20 to 30 phrases works best possible for many instances.

Taste your tooltip to appear the section. Give it a background shade that sticks out out of your web page however remains readable. Upload 5 to ten pixels of padding so the textual content has respiring room. Set a border radius of 8 to twelve pixels for that vintage tooltip bubble glance. You’ll upload a delicate field shadow to boost it off the web page.

For textual content styling, use a font measurement quite smaller than your frame textual content, round 14 or 15 pixels. Make certain the textual content shade contrasts effectively along with your background selection. White or darkish textual content on each darkish and light-weight backgrounds works neatly. You’ll additionally use Design Variables for colours and spacing to tie tooltips into your website online’s broader styling machine.

A screenshot of how the tooltips can be styled to make it standout

Title it the usage of the Admin Label box, like “Function Tooltip” for simple id throughout setup.

A screenshot of adding an admin label which will be helpful in upcoming steps

Believe including visible cues to the “guardian” module the place the tooltip would possibly seem. For instance, take a look at an underline for textual content parts or a delicate background shade. Those hints inform guests that further data is looking ahead to them.

A screenshot of styling the parent module so it looks interactable

You may additionally upload customized CSS to the guardian module in order that when hovered over, it presentations the vintage “?” cursor, indicating that additional info is to be had.

Move to the module’s complex settings and put the next CSS:

selector p {
cursor: lend a hand;
}

A screenshot of applying custom CSS to get the cursor for a text module

You could wish to adapt the code to check your module. For instance, in case your tooltip guardian is a button, you possibly can exchange it p with button as a substitute. This isn’t a required step, however this can be a usual setup for tooltips.

2. Configuring Interactions And Triggers

Now, make a choice the module that may cause your tooltip and head to the Complicated tab. Search for the Interactions dropdown close to the ground.

A screenshot of where to find the interactions options in Divi 5

Hit “Upload Interplay” and also you’ll see six cause choices: Click on, Mouse Input, Mouse Go out, Viewport Input, Viewport Go out, and Load. Move with “Mouse Input” for the standard hover tooltip.

A screenshot of which option to select as a trigger

The interplay editor opens. Within the Admin Label box, identify your interplay one thing transparent, like “Display Tooltip.” Your Cause Tournament must display Mouse Input. Since your tooltip begins hidden, pick out “Display Component” for the Impact Motion.

The Goal Module dropdown lists each and every part for your web page by means of identify. To find your tooltip right here. Excellent naming will pay off at this level. Upload a slight prolong of 200 to 300 milliseconds so the tooltip doesn’t pop up throughout fast mouse passes. Save the interplay while you’re finished.

Create a 2d interplay to cover the tooltip. Click on “Upload Interplay” once more, pick out “Mouse Go out” as your cause, set “Conceal Component” because the impact, and goal the similar tooltip. This handles the disappearing act when folks transfer away.

Upload a 200 to 300 millisecond prolong right here, too. This prevents the tooltip from disappearing too briefly, making it glance jarring.

A screenshot of options to set up an

3. Positioning Your Tooltip

After construction your tooltip and environment display and conceal movements, make a selection the place they seem. Within the tooltip module settings, cross to Complicated > Place and turn from Default to Absolute.

Absolute positioning puts the tooltip relative to its guardian container, so the tooltip and cause keep connected and transfer in combination when customers scroll. So it’s herbal to peer the location of your tooltip module trade enormously. We’ll repair this ultimately.

A screenshot of the tooltip drastically changing position after updating to absolute positioning

Divi 5 supplies vertical and horizontal offset controls to fine-tune the tooltip’s placement. Those offsets set how a long way the tooltip sits from its reference level within the container.

However, first, pick out the offset foundation, the nook or edge that acts because the anchor: peak, peak left, peak proper, backside, backside left, backside proper, or heart, heart left, heart proper.

A screenshot of where to find the offset origin option

If the foundation is peak left, offsets measure from the tooltip’s peak left nook. If you select backside proper, the similar offsets measure from the tooltip’s backside proper nook.

This adjustments how the offsets impact place. For instance, a peak left foundation with a 20px horizontal offset puts the tooltip’s left edge 20px from the container edge, and a peak proper foundation with a 20px horizontal offset puts the tooltip’s proper edge 20px from the container edge.

Operating With Offset Controls

If you happen to pick out any alignment instead of heart, use the vertical and horizontal offset controls to place the tooltip. Those offsets set the tooltip’s distance from the selected foundation within the container. For responsive positioning, you’ll use advanced units akin to viewport devices or percentages as a substitute of pixels.

Viewport devices give constant spacing relative to display measurement. A horizontal offset of 3vw helps to keep the tooltip 3% of the viewport width from its reference edge, scaling throughout gadgets. Additionally, make sure that you upload a right kind Z Index for your tooltip so it all the time seems atop of all parts, under or above it.

Position the tooltip about 15–25 px from its cause to steer clear of crowding whilst conserving the relationship transparent.

A screenshot of example settings to make the module appear tooltip like

Unfavorable offsets can turn facets however upload psychological overhead. As a substitute, set the foundation the place you wish to have the tooltip (backside for above, proper for left) so you’ll use easy certain offsets.

As soon as making a decision at the actual place and behaviour, cover your tooltip module by means of going to the tooltip module’s settings panel > Complicated > Interplay and make a choice “Load” because the cause, “Conceal Component” as Impact Motion, and the module itself because the Goal. This may increasingly make sure the module stays hidden till the guardian is hovered over.

A screenshot of what to add to the tooltip module to ensure it is hidden on load

That’s all, your tooltip is now in a position!

Obtain The Tooltip Format

If you wish to take a look at the tooltip, obtain the format under! Import the report for your Divi Library, as soon as uploaded, you’ll be capable to get entry to it within any construct you’re running on.

.et_bloom .et_bloom_optin_1 .et_bloom_form_content { background-color: #4843d2 !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container .et_bloom_form_header { background-color: #ffffff !vital; } .et_bloom .et_bloom_optin_1 .carrot_edge .et_bloom_form_content:earlier than { border-top-color: #ffffff !vital; } .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:earlier than, .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:earlier than { border-top-color: clear !vital; border-left-color: #ffffff !vital; }
@media most effective display and ( max-width: 767px ) {.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:earlier than { border-top-color: #ffffff !vital; border-left-color: clear !vital; }.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:after { border-bottom-color: #ffffff !vital; border-left-color: clear !vital; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_fields i { shade: #f92c8b !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:earlier than { background: #f92c8b !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !vital } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !vital; } .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 robust { 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 robust, .et_bloom .et_bloom_optin_1 .et_bloom_form_container shape enter, .et_bloom .et_bloom_optin_1 .et_bloom_form_container shape button span { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; } p.et_bloom_popup_input { padding-bottom: 0 !vital;}

You might have effectively subscribed. Please test your electronic mail deal with to substantiate your subscription and get get entry to to loose weekly Divi format packs!

Take a look at Interactions In Divi 5 Lately

Tooltips stay pages blank whilst giving readers the additional element they want. With Interactions in Divi 5, you’ll display and conceal tooltip content material on hover or faucet, upload a brief prolong to stop flicker, and position every tooltip exactly with Absolute, Offset Beginning, and Z-Index. The result’s constant throughout Divi 5’s seven responsive breakpoints.

Need to cross deeper at the characteristic itself? Learn the Interactions release post for an outline of triggers, results, and goals.

The submit How To Create Tooltips With Divi 5’s Interactions seemed first on Elegant Themes Blog.

wordpress Maintenance Plans | wordpress hosting

read more



Source link

thatguy
Author: thatguy

Places

Services

  • No Categories

Classifieds

  • No Categories

Events

News

Shopping