- Download the files from Tippy here and enqueue JavaScript by following Enqueue Scripts & CSS
- Choose a method
Create a element, add JavaScript
→
tippy('#%%ELEMENT_ID%%', {
content: 'Nothing at all!',
});
Create a element, set class
→ someClass
Create a Code Block
, add JavaScript
→
tippy('.someClass', {
content: 'Nothing at all!',
});
Create a Code Block
, add JavaScript
→
tippy('[data-tippy-content]');
Go to your element, Advanced
→ Attributes
→ Add Attribute
name
→data-tippy-content
value
→Nothing at all!
Here I utilized allowHTML: true
and set the content
to a div with content.
For e.g. content: document.getElementById('wheelTemplate')