WordPress Glossary Plugin (CMTG) - Extras - How to Prevent Highlighting Terms Inside Links
How to Prevent Highlighting Terms Inside Links
What Is This About?
When adding terms with the WordPress Glossary plugin, you might face an issue when some link in your content is broken. It can happen if a link contains some glossary term, and it is automatically highlighted inside the link.
Example:

There're a few ways to fix this.
Exclude <a> Tag from Parsing
The easiest and best way is to exclude parsing terms in links by HTML tag. Navigate to Admin Dashboard → CM Tooltip Glossary → Settings → General Settings tab.

Scroll down to the section Term highlighting and find the option Exclude HTML tags from parsing. Select there the tag <a>
and save the changes.

Highlight Only Space Separated Terms

Prevent Parsing Using Shortcode
Another way is to wrap the link with the shortcode [glossary_exclude]
.
When editing the page, simply wrap the link with the opening and closing shortcodes, then save the changes. Example: [glossary_exclude]
link [/glossary_exclude]

Front-end Result

![]() |
More information about the WordPress Glossary Plugin Other WordPress products can be found at CreativeMinds WordPress Store |
![]() |
Let us know how we can Improve this Product Documentation Page To open a Support Ticket visit our support center |