Divi 5 helps to keep turning not unusual custom-code workflows into local builder options, and the brand new Tooltip module is a superb instance. It means that you can upload a floating popup panel beside every other component and regulate its content material, cause, place, motion, arrow, timing, and styling visually.
As an alternative of wiring up a tooltip library via hand, you’ll position a Tooltip module within the component it describes, upload textual content or nested modules, and make a decision whether or not the tooltip seems on hover, on click on, or at all times.
That makes it helpful for brief hints, characteristic explanations, product main points, icon labels, mini promo playing cards, looped content material, and contextual callouts that want extra flexibility than a elementary browser tooltip.
On this publish, we’ll take a look at what the Tooltip module is, how you can upload it, how its settings paintings, and the place it could beef up a Divi 5 format with out including muddle.
What Is The Tooltip Module In Divi 5?
The Tooltip module is a nestable content material container that looks beside a guardian component. The guardian component turns into the tooltip’s anchor, and the Tooltip module holds the popup content material.
In sensible phrases, you upload the Tooltip module as a kid of the component it will have to describe. That guardian component could be a button, icon, symbol, textual content module, pricing characteristic, product card, or another component that wishes additional context.
Via default, the tooltip displays on hover, seems close to the highest middle of its anchor, and makes use of a small arrow to indicate again to the component it describes. While you’re designing, you’ll activate Pressure Visual within the Meta possibility workforce so the tooltip remains visual at the canvas.
That is other from a browser identify characteristic or a easy text-only trace. The Tooltip module can comprise wealthy textual content and nested modules, so the popup may also be so simple as one sentence or as wealthy as a small card with textual content, an icon, a picture, a button, or different Divi content material.
That flexibility comes in handy, but it surely will have to be used sparsely. A tooltip will have to upload context, now not cover data the web page must make sense.
How To Upload A Tooltip Module
Get started via deciding which component will have to cause or anchor the tooltip. The Tooltip module will have to be positioned within that component so it is aware of what to indicate to.
You’ll upload it in both of those techniques:
- Proper-click manner: Proper-click the component, make a selection Upload Component, then make a selection Upload Within.
- Settings panel manner: Open the component settings, move to Content material > Components, then click on Upload New Component.
Seek for Tooltip and upload the module.
As soon as added, the Tooltip module is tied to its guardian component. That guardian acts because the anchor, whilst the tooltip content material floats beside it in keeping with the settings you select.
This is identical in spirit to making a tooltip with Divi 5’s Interactions, however the Tooltip module handles the average tooltip habits for you. You don’t want to manually arrange separate interplay triggers, goal components, positioning, and display/cover results for the standard tooltip.
Working out The Tooltip Module Settings
The Tooltip module settings are arranged into the usual Divi tabs: Content material, Design, and Complex.
The Content material tab handles the tooltip content material and same old module choices. The Design tab controls habits and styling. The Complex tab handles attributes, stipulations, visibility, interactions, place, and different complex controls.
Content material Tab
The Content material tab is the place you upload the content material that looks within the tooltip. The primary possibility teams come with:
- Textual content: Upload and edit the tooltip’s wealthy textual content content material.
- Hyperlink: Make the tooltip module hyperlink to a web page, segment, or exterior URL.
- Components: Upload nested modules within the tooltip.
- Background: Set a background coloration, gradient, symbol, or video for the tooltip.
- Loop: Repeat tooltip content material from an information supply when utilized in dynamic layouts.
- Order: Keep an eye on module order when content material is generated dynamically.
- Meta: Rename the module within the builder and activate Pressure Visual whilst designing.
Pressure Visual within the Meta settings is particularly helpful. For the reason that tooltip is hidden till precipitated at the entrance finish, turning on Pressure Visual means that you can see the panel when you genre it within the Visible Builder.
Display Tooltip On
The primary main habits atmosphere, which you’ll to find within the design tab’s Tooltip possibility workforce, is Display Tooltip On. It controls how the tooltip seems.
You’ll make a choice from:
- Hover: Displays the tooltip when the customer hovers over the guardian component.
- Click on: Displays the tooltip when the customer clicks the guardian component.
- At all times: Assists in keeping the tooltip visual with out requiring hover or click on.
Hover works smartly for brief, purely informational hints on desktop. Click on is normally higher when the tooltip accommodates interactive content material, similar to a hyperlink or button, or when the enjoy must paintings higher on contact gadgets. At all times comes in handy when the tooltip is being handled extra like an everlasting callout or label.
Tooltip Motion
Tooltip Motion controls whether or not the tooltip remains anchored or follows the cursor.
The 2 motion choices are:
- Anchored: Assists in keeping the tooltip located relative to the guardian component.
- Practice Cursor: Makes the tooltip apply the customer’s cursor whilst interacting with the guardian component.
Anchored is the most efficient default for many actual builds as it helps to keep the format predictable. Practice Cursor can paintings smartly for frolicsome hover states, interactive graphics, maps, product callouts, or visible components the place cursor motion is a part of the enjoy.
Tooltip Place
Tooltip Place controls the place the tooltip seems relating to its guardian component.
The location grid means that you can make a selection the threshold and alignment. As an example, you’ll position the tooltip above the cause, underneath it, to the left, to the best, or aligned alongside a kind of edges.
This offers you not unusual tooltip placements with out writing positioning CSS. If the tooltip must steer clear of within reach content material, have compatibility within a card, or level towards a particular a part of the cause, get started with the placement grid.
Tooltip Skid And Tooltip Distance
After opting for the principle place, you’ll refine the position with Tooltip Skid and Tooltip Distance.
Tooltip Skid shifts the tooltip alongside the threshold of the guardian component. If the tooltip sits above or underneath the cause, skid strikes it horizontally. If the tooltip sits to the left or proper, skid strikes it vertically.
Tooltip Distance controls the space between the guardian component and the tooltip. Building up it when the tooltip wishes extra respiring room. Lower it when the tooltip will have to sit down nearer to the cause.
Open And Shut Prolong
The Tooltip module additionally contains prolong controls for opening and shutting.
Tooltip Open Prolong controls how lengthy the module waits prior to appearing the tooltip. A small prolong can save you tooltips from showing each and every time a cursor in brief passes over a cause.
Tooltip Shut Prolong controls how lengthy the tooltip remains visual after the cause is not energetic. This will make the interplay really feel much less twitchy, particularly when the tooltip accommodates content material the customer would possibly wish to learn or transfer towards.
Use delays subtly. Lengthy delays could make a tooltip really feel unresponsive, whilst no prolong could make a web page with many triggers really feel too busy.
Tooltip Arrow
The tooltip arrow is helping visually attach the popup to the component it describes.
Activate Display Tooltip Arrow to show the pointer. Then regulate:
- Tooltip Arrow Colour: Fit it to the tooltip background so the arrow feels hooked up to the panel.
- Tooltip Arrow Placement: Make a choice which aspect of the tooltip the arrow seems on.
- Tooltip Arrow Place: Transfer the arrow alongside that aspect.
- Tooltip Arrow Dimension: Keep an eye on how huge the arrow seems.
A small, color-matched arrow normally feels fashionable and blank. A bigger arrow can paintings for a extra playful speech-bubble genre.
Taste The Tooltip Panel
Past the Tooltip habits workforce, the Design tab contains same old styling teams for the panel itself. You’ll regulate:
- Format: Keep an eye on how nested modules within the tooltip are organized.
- Frame Textual content: Taste the tooltip textual content.
- Sizing: Set the tooltip width, max width, top, and alignment.
- Spacing: Modify padding and margin.
- Border: Upload border kinds and rounded corners.
- Field Shadow: Upload intensity across the popup.
- Filters: Practice visible filter out results.
- Change into: Scale, rotate, transfer, or skew the tooltip.
- Animation: Upload movement when the tooltip seems.
For many designs, get started with width, padding, background, border radius, textual content styling, and a delicate shadow. Tooltips paintings absolute best once they really feel light-weight and simple to learn.
Construct Examples
The Tooltip module is Most worthy when it reduces visual muddle whilst nonetheless preserving useful data with regards to the component that wishes it.
Pricing Desk Characteristic Clarifiers
Pricing tables regularly want quick explanations with out turning each and every row right into a paragraph. Upload a small information icon subsequent to a characteristic label, or use the characteristic textual content itself because the anchor, then position a Tooltip module within it.
The tooltip can provide an explanation for what a characteristic contains, outline a prohibit, explain billing phrases, or floor quick wonderful print with out making the entire desk taller.
Stay pricing tooltips concise. If the rationale wishes a number of paragraphs, it more than likely belongs within the web page content material or a devoted FAQ segment as an alternative.
Icon Labels And Symbol Hotspots
The Tooltip module works smartly for icon-based interfaces and symbol callouts. Upload a Tooltip module within an icon, button, hotspot marker, or symbol component to expose a brief label or rationalization. Use this for:
- Characteristic diagrams
- Product main points
- Map issues
- Portfolio annotations
- Dashboard-style layouts
A cursor-following tooltip can really feel enticing for visible diagrams, whilst anchored positioning is normally higher for blank product or characteristic explanations.
Tooltips Within A Loop
Tooltips may also be helpful within looped layouts. A loop can render posts, merchandise, workforce contributors, portfolio entries, places, or different repeated content material, and each and every merchandise can come with its personal Tooltip module.
A weblog card, for instance, can display the featured symbol, identify, writer, and date, whilst the tooltip unearths tags, classes, studying time, or a brief excerpt. A product card can use a tooltip for specifications, availability, delivery notes, or fast main points.
The convenience is that you just design the tooltip as soon as within the loop merchandise, then let dynamic content material populate the repeated circumstances.
Absolute best Practices For Tooltip Design
Tooltips are helpful as a result of they keep out of the best way till wanted. That still way they will have to be selective, transparent, and simple to cause.
- Use hover for brief hints: Hover works smartly for easy desktop-only explanations.
- Use click on for interactive content material: If the tooltip accommodates a hyperlink, button, or nested module, click on is normally a greater cause.
- Stay content material concise: Tooltips will have to provide an explanation for or explain, now not change major web page content material.
- Use a visual cue: Icons, underlined phrases, badges, or hotspots assist guests know a tooltip exists.
- Don’t cover very important data: Crucial disclaimers, navigation, pricing stipulations, or directions will have to now not reside solely within a tooltip.
- Take a look at cellular habits: Hover does now not translate cleanly to the touch gadgets, so check pill and contact perspectives.
- Preview whilst designing: Activate Pressure Visual within the Meta possibility workforce so you’ll genre the tooltip at the canvas.
- Fit the arrow and background: A colour-matched arrow normally makes the tooltip really feel extra polished.
- Stay spacing beneficiant: Sufficient padding and line top make small tooltip panels more straightforward to learn.
Accessibility And search engine optimization Notes
Tooltip content material is normally hidden till precipitated. That makes it a deficient position for anything else the customer should perceive prior to taking motion.
Use tooltips as modern enhancement. The web page will have to nonetheless make sense when each and every tooltip is closed. A tooltip can upload useful context, however the principle content material, navigation, pricing, and required directions will have to stay visual or obtainable via a extra dependable development.
For accessibility, steer clear of depending on hover on my own for vital data. Ensure the cause is apparent, check keyboard and contact habits, and use click on triggers when the tooltip contains interactive content material.
For search engine optimization, don’t position content material you want listed solely within a tooltip. If a paragraph issues for seek, web page construction, or consumer working out, stay it within the visual web page content material.
Check out The New Divi 5 Tooltip Module As of late!
The Tooltip module in Divi 5 gets rid of a not unusual want for tradition tooltip libraries, snippets, or additional plugins. It offers you a local approach so as to add contextual floating content material with visible controls for triggers, placement, motion, prolong, arrows, content material, and styling.
Use it for brief hints, pricing clarifiers, shape notes, symbol hotspots, looped playing cards, and compact promo panels. Stay the content material selective, make a selection the best cause, and check the enjoy throughout gadgets.
Finished smartly, tooltips make a format really feel cleaner with out making vital data more difficult to search out.
The publish Exploring Divi 5’s New Tooltip Module gave the impression first on Elegant Themes Blog.



0 Comments