Different behavior between automatic tool tips and manual tool tips
-
WordPress v. 6.8.2
CM Tooltip Glossary v. 4.4.9In one page on my site, I used the shortcode that manually insert a tooltip ([glossary_tooltip term_id=”123″]). I noticed that the manual one is not a link to the glossary term page, even though the plugin option “Remove link to the glossary term page?” is unchecked.
I looked at the page html source in my browser and I could see that each tooltip is formed differently. Below is the page source html for a working tooltip (automatically created by the plugin) and a manual tooltip (created with the shortcode), with the glossary titles, definitions, and link replaced by plain text.
AUTO TOOL TIP HTML:
<a class="glossaryLink" aria-describedby="tt" data-cmtooltip="<div class=glossaryItemTitle>GLOSSARY TERM 1</div><div class=glossaryItemBody>
&lt;p&gt;GLOSSARY TEXT 1&lt;/li&gt;&lt;/ol&gt;</div>" href="LINK 1" data-gt-translate-attributes='[{"attribute":"data-cmtooltip", "format":"html"}]' tabindex="0" role="link">GLOSSARY TERM 1</a>MANUAL TOOL TIP HTML:
<span data-cmtooltip="&lt;div class=glossaryItemTitle&gt;GLOSSARY TERM 2&lt;/div&gt;&lt;div class=glossaryItemBody&gt;GLOSSARY TEXT 2&lt;/div&gt;" class="glossaryLink " tabindex="0" aria-describedby="tt" role="link">GLOSSARY TERM 2</span>Is this intended behavior? I would prefer that the plugin output is identical whether the tooltip is created automatically or manually, but more importantly, I would like both to produce a link to the glossary term page. Is there a simple way to do that? Thanks!
The topic ‘Different behavior between automatic tool tips and manual tool tips’ is closed to new replies.