WordPress.org

Ready to get started?Download WordPress

Forums

CM Tooltip Glossary
[resolved] Glossary terms not working in pages (4 posts)

  1. tonicbox
    Member
    Posted 1 year ago #

    Glossary terms are not appearing as links on pages. They work on posts, but even with the 'Highlight terms on pages (not just posts)?' setting checked, terms that appear on pages aren't working.

    http://wordpress.org/extend/plugins/enhanced-tooltipglossary/

  2. CM Plugins
    Member
    Plugin Author

    Posted 1 year ago #

    Can you please send a URL since we can not replicate this

    Please check also that you don't have any JS error in pages, this can cause tooltip not to appear (to do this you need to open developer consul and check for errors in Browser - ex FireBug)

  3. tonicbox
    Member
    Posted 1 year ago #

    Thanks for the quick response. Since sending the original message some pages have starting working, but other still don't. Some of the text with glossary terms are inside theme shortcodes.

    To see the site use this URL (it's not live yet):

    http://www.flying-start.org/preview

    Then go here to see a working one:

    http://www.flying-start.org/age-18-to-24/

    And here to see one that isn't:

    http://www.flying-start.org/age-18-to-24/choose-route/military/aac-requirements/ - you'll need to expand the toggled content in the grey bar.

    I've checked for errors using Firebug with Firefox, and nothing comes up.

    Thanks

    Lee

  4. CM Plugins
    Member
    Plugin Author

    Posted 1 year ago #

    To parse terms inside shortcodes inside theme shortcodes, You will need to use red_glossary_parse($content, true) function (PRO version only) inside a shortcode function.
    In regular version only raw content is parsed, before any of shortcodes are being replaced by their equivalents. You can also try to modify add_filter(‘the_content’, ‘red_glossary_parse) with far priority index:

    add_filter(‘the_content’, ‘red_glossary_parse’, 99);

    so it could be parsed AFTER shortcodes are evaluated (need to try which number will be enough, could be 99, could be 999, depending on other filters)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.