CM Tooltip (CMTG) - Tooltips - Controlling Where Tooltip Appears
Controlling Where The Tooltip Appears
There are several different settings that help determine where on your site or blog your WordPress Tooltips will appear, and how.
You can access, customize, and set rules for the way you want your WordPress tooltips to appear, by going into the plugin’s Settings panel → and clicking the tab “General Settings”, then checking the "Term Highlighting" section.
- Enable or disable term highlighting altogether in pages, posts, custom post types and archives
- Only show terms on single posts/pages - For cases when you want terms to be highlighted across your site, but not on pages such as the homepage, archive pages and author pages
- Only highlight the first term on each page
- Treat variation/synonyms as the base term or not
- Highlight terms inside user comments
- Highlight terms inside the Text Widget
- Highlight BuddyPress pages and bbPress replies
- Highlight only space-separated terms
- Exclude specific HTML classes or tags - you can write down a list of classes and tags, separating them by commas
- Example: h1, h2, p, div, header, div, container
- Settings related to Advanced Custom Fields have their own section
You can also enable/disable the tooltip depending on the device.
Check the article CM Tooltip (CMTG) - Extras - Mobile Support for more details.
Controlling On Term Pages
Also, when you edit a term, you can find a metabox that controls if a tooltip will appear for the term:
Controlling On Individual Pages/Posts
The rules you defined in the general plugin settings will apply to all pages and posts. However, they can be overridden by using the tooltips metabox located on the right side of the post once editing it.
Using this metabox, you can manually exclude some pages from being parsed by the plugin, as well as change the rules by which that particular page is parsed.
If the metabox is not being shown, ensure this setting is enabled:
Settings → General Settings → Edit Screen Elements → "CM Tooltip Disables" metabox .
Controlling On Categories
To disable tooltips inside a term category, check the option Disable tooltips while creating/editing that category.
( Pro+ and eCommerce versions only)
Controlling Inside Post/Pages Content Using Shortcodes
You can also restrict the parsing of text inside a post or page by using the glossary_exclude shortcode in the following way:
[glossary_exclude] text [/glossary_exclude]