Title: exclude or include based on class
Last modified: August 16, 2021

---

# exclude or include based on class

 *  Resolved [asden](https://wordpress.org/support/users/asden/)
 * (@asden)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/exclude-or-include-based-on-class/)
 * I have the glossary items being inserted into the side menu (list of lessons)
   in learndash/buddyboss. How can I exclude that menu area of the page? Is there
   a way to have it ignore a specific class or id, or only appear within a specific
   class or id?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/exclude-or-include-based-on-class/#post-14772113)
 * The pro version has a shortcode that let you ignore some part of the content 
   [https://docs.codeat.co/glossary/shortcodes/#ignore-terms-premium](https://docs.codeat.co/glossary/shortcodes/#ignore-terms-premium)
 * We parse the HTML code that is already hard and performance heavy so we need 
   to be some kind of strict. Those plugins (or visual compoter/page builder used
   in the website) probably inject their content with `the_content` filter, so this
   is getting parsed by our plugin.
 * That filter should be used only for content like the post and not so much HTML,
   they should use templates for those things to avoid conflict.
 * To help for integration we did this shortcode that need to implemented based 
   in your site to wrap the content to ignore.
    Another solution is disable the 
   automatic injection from the settings and with the PRO version use this shortcode
   [https://docs.codeat.co/glossary/shortcodes/#parse-content-premium](https://docs.codeat.co/glossary/shortcodes/#parse-content-premium)
   to wrap the whole full post (not just a single term).

Viewing 1 replies (of 1 total)

The topic ‘exclude or include based on class’ is closed to new replies.

 * ![](https://ps.w.org/glossary-by-codeat/assets/icon-256x256.png?rev=1889092)
 * [Glossary](https://wordpress.org/plugins/glossary-by-codeat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/glossary-by-codeat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/glossary-by-codeat/)
 * [Active Topics](https://wordpress.org/support/plugin/glossary-by-codeat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/glossary-by-codeat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/glossary-by-codeat/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/exclude-or-include-based-on-class/#post-14772113)
 * Status: resolved