• Resolved e dev

    (@efishinsea)


    Despite not having this checkbox checked:

    links generated from the [glossary] shortcode are opening in a new window and there is no attribute that I can find to add a different value to get around this.

    Also, the output of the HTML for the glossary term links is doubled up, generating an empty anchor tag everywhere a glossary link is added:

    <li class="ln-0" itemscope="" itemtype="https://schema.org/DefinedTerm">

    <a role="term" class="glossaryLinkMain " style="" itemprop="url"><span itemprop="name"></span></a>

    <a class="glossaryLink" target="_blank" data-gt-translate-attributes="[{&quot;attribute&quot;:&quot;data-cmtooltip&quot;, &quot;format&quot;:&quot;html&quot;}]" tabindex="0" role="link">MyTerm</a>

    </li>

    Finally, you provide a way to set Text color in the popup tooltip, but the Title color is not affected by this and is unchangeable as you write out your inline styles down in the body content and not the header, so overriding them is not possible.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    The links on the main Glossary page are doubled because the page is parsed by the CM Tooltip Glossary plugin. Please disable parsing for this page using the “CM Tooltip – Disables” metabox or please add the “<a>” tag to the “Exclude HTML tags from parsing” option.

    To overwrite the tooltip title text color please use the following CSS selector in your custom CSS:
    body #tt #ttcont div.glossaryItemTitle
    {
    color: your color !important;
    }

    Thread Starter e dev

    (@efishinsea)

    Thank you. This partially helps.

    Disabling “Overwrite the “Don’t use the DOM parser for the content” setting on this page breaks the HTML completely by only periodically doing that and there is no way to specify a specific element (</a>) as you suggest. This is what happens:

    <li class="ln-2" itemscope="" itemtype="https://schema.org/DefinedTerm"><a href="/glossary/<a class=" glossarylink"="" data-gt-translate-attributes="[{&quot;attribute&quot;:&quot;data-cmtooltip&quot;, &quot;format&quot;:&quot;html&quot;}]" tabindex="0" role="link">cad</a>/"  role="term" class="glossaryLinkMain "   style=""   itemprop="url" &gt;<span itemprop="name">CAD</span></li>

    It seems like “fixing this” with your short code ought to be the default behavior rather than having to rely on individual user settings each time. I am guessing that when people use this short code to show a of list the glossary terms, they are expecting it to just should show a list of glossary terms as an index.

    Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    The?“Overwrite the “Don’t use the DOM parser for the content”?option in the metabox doesn’t disable the parsing but enables a simple parser on the page, so please disable it back. To disable parsing on the page please use the?“Search for glossary items on this post/page”?option (set to the “Don’t search” value). Please see?the screenshot
    The?“Exclude HTML tags from parsing”?option that allows to prevent parsing links is placed in the plugin settings >> General settings tab >> Term highlighting section

    Thread Starter e dev

    (@efishinsea)

    Yes, thanks.

    Again, seems like the shortcode ought to have this default functionality built into it since that makes the most sense for what it is doing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Open In New Window, double empty HTML and title colors’ is closed to new replies.