{"id":2404,"date":"2023-10-05T07:19:03","date_gmt":"2023-10-05T07:19:03","guid":{"rendered":"https:\/\/tocwp.com\/docs\/?post_type=ht_kb&#038;p=2404"},"modified":"2025-11-28T08:03:46","modified_gmt":"2025-11-28T08:03:46","slug":"excluding-headings-by-class-in-easy-table-of-contents","status":"publish","type":"ht_kb","link":"https:\/\/tocwp.com\/docs\/knowledge-base\/excluding-headings-by-class-in-easy-table-of-contents\/","title":{"rendered":"Excluding Headings by Class in Easy Table of Contents"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this tutorial, we will show you how you can Exclude Headings by Class.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes there are some plugins that add unnecessary headings to the Table Of Content box so this feature is to help you to exclude them.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download and Install the\u00a0<strong>Easy Table Of Contents Pro<\/strong>\u00a0zip folder from the\u00a0<a href=\"https:\/\/tocwp.com\/pricing\/\" data-type=\"link\" data-id=\"https:\/\/tocwp.com\/pricing\/\">account area<\/a> <\/li>\n\n\n\n<li>Upload and Activate the plugin on your website.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: <\/strong>Go to Easy Table of Content settings and scroll down to the PRO Settings and here you will find the option to Exclude Headings by Class.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"394\" src=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH-1024x394.webp\" alt=\"\" class=\"wp-image-2405\" srcset=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH-1024x394.webp 1024w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH-300x116.webp 300w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH-768x296.webp 768w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH-50x19.webp 50w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH-1536x591.webp 1536w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH-60x23.webp 60w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH-100x39.webp 100w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/PJ3FH.webp 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong> Here you have to add the class from which you want to exclude the heading in the format given as an example below.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can see four headings in the Table of contents.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"467\" src=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1-1024x467.png\" alt=\"\" class=\"wp-image-2409\" srcset=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1-1024x467.png 1024w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1-300x137.png 300w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1-768x350.png 768w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1-50x23.png 50w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1-1536x700.png 1536w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1-60x27.png 60w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1-100x46.png 100w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/1.png 1579w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">    2.  Inside &lt;h2> you can see after &#8220;wp-block-heading &#8221; we have placed &#8220;Class-A&#8221; and &#8220;Class-B&#8221;.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"280\" src=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1-1024x280.png\" alt=\"\" class=\"wp-image-2415\" srcset=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1-1024x280.png 1024w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1-300x82.png 300w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1-768x210.png 768w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1-50x14.png 50w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1-1536x419.png 1536w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1-60x16.png 60w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1-100x27.png 100w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d1.png 1579w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">   3.  Add &#8220;Class-A&#8221;, and &#8220;Class-B&#8221; inside Exclude headings by class option. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"410\" src=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2-1024x410.png\" alt=\"\" class=\"wp-image-2416\" srcset=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2-1024x410.png 1024w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2-300x120.png 300w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2-768x308.png 768w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2-50x20.png 50w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2-1536x616.png 1536w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2-60x24.png 60w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2-100x40.png 100w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/d-2.png 1572w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">   4.  You can see the changes in the Table of contents.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"455\" src=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4-1024x455.png\" alt=\"\" class=\"wp-image-2412\" srcset=\"https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4-1024x455.png 1024w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4-300x133.png 300w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4-768x341.png 768w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4-50x22.png 50w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4-1536x682.png 1536w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4-60x27.png 60w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4-100x44.png 100w, https:\/\/tocwp.com\/docs\/wp-content\/uploads\/2023\/10\/4.png 1599w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We hope we\u2019ve cleared your doubts in case you have any feedback or questions, then please share them in the comments section below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how you can Exclude Headings by Class. Sometimes there are some plugins that add unnecessary headings to the Table Of Content box so this feature is to help you to exclude them. Step 1: Go to Easy Table of Content settings and scroll&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[6],"ht-kb-tag":[],"class_list":["post-2404","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-premium"],"_links":{"self":[{"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/2404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/comments?post=2404"}],"version-history":[{"count":5,"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/2404\/revisions"}],"predecessor-version":[{"id":2642,"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/2404\/revisions\/2642"}],"wp:attachment":[{"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/media?parent=2404"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=2404"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tocwp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=2404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}