• Resolved handwovenbox

    (@handwovenbox)


    WordPress v. 6.8.2
    CM Tooltip Glossary v. 4.4.9

    In 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="&lt;div class=glossaryItemTitle&gt;GLOSSARY TERM 1&lt;/div&gt;&lt;div class=glossaryItemBody&gt;
    &amp;lt;p&amp;gt;GLOSSARY TEXT 1&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;" 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="&amp;lt;div class=glossaryItemTitle&amp;gt;GLOSSARY TERM 2&amp;lt;/div&amp;gt;&amp;lt;div class=glossaryItemBody&amp;gt;GLOSSARY TEXT 2&amp;lt;/div&amp;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!

    • This topic was modified 9 months, 2 weeks ago by handwovenbox.
Viewing 1 replies (of 1 total)
  • Plugin Support johncminds

    (@johncminds)

    The term_id param of the [glossary_tooltip] shortcode is only used to display the content of a specific term in the tooltip, instead of specifying content manually. To link the text by custom tooltip, please specify the URL of the needed term using the link parameter in the shortcode.

Viewing 1 replies (of 1 total)

The topic ‘Different behavior between automatic tool tips and manual tool tips’ is closed to new replies.