• Resolved cyankevin

    (@cyankevin)


    How do you prevent terms within terms in the tooltip. I don’t want highlighted terms within another terms tooltip.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter cyankevin

    (@cyankevin)

    Only way I was able to do it was to do the following, it would be nice if there was a setting to disable them.

    add_filter('glossary_tooltip_html', 'se_disable_terms_in_glossary');
    
    function se_disable_terms_in_glossary($excerpt) {
        return do_shortcode('[glossary-ignore]' . $excerpt . '[/glossary-ignore]');
    }

    Glossary doesn’t work with term inside a tooltip, we have a filter to avoid those situations.
    Those conflicts can happen because for conflicts with other plugin or themes. Are you using a visual composer or page builder?

    Thread Starter cyankevin

    (@cyankevin)

    No I’m not using builder or composer. I am using acf fields within a page template and I was getting terms inside terms until I implemented the filter above.

    Can I have a web page with the issue?
    Also that filter will not work, our plugin parse the_content and found the term avoiding nested divs.
    So that shortcode will be not parse by our system because of the flow that is not the right one.

    Thread Starter cyankevin

    (@cyankevin)

    It does work, because the output is all acf and not the_content. I don’t have the site on a public url at the moment so I can’t share it.

    Glossary pro version has support for ACF, that add a checkbox on the fields wher you want that the plugin is executed.

    Closing for a month of silence

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable glossary in tooltip.’ is closed to new replies.