Reputation: 11
I'm working on a WordPress ecommerce site. They want to have some industry-specific words (like "ADA Compliant, ANSI/BHMI") have tooltips with definitions.
I've added tooltips via tooltipster and created a shortcode for manually adding tooltips, but as these words are repeated many times throughout the site, I really want to give them a single interface where they can define a single instance of word + tooltip, that affects everwhere those words are written in the content.
The only thing I can think of is a gettext filter, but it seems like that would be terrible for performance, since they will have a lot of words.
I'd love some ideas of how I could achieve this. I don't know what direction to go in. (Translation won't work since it's in the content, not theme or plugin strings.)
Upvotes: 1
Views: 18