{"id":688,"date":"2018-03-16T16:04:05","date_gmt":"2018-03-16T15:04:05","guid":{"rendered":"https:\/\/codesavory.com\/demo\/?post_type=knowledgebase&#038;p=688"},"modified":"2021-06-30T15:51:13","modified_gmt":"2021-06-30T13:51:13","slug":"table-of-contents-settings","status":"publish","type":"knowledgebase","link":"https:\/\/basepresskb.com\/docs\/knowledge-base\/settings\/table-of-contents-settings\/","title":{"rendered":"Table of Contents Settings"},"content":{"rendered":"<p>Under the Table of Contents (TOC) tab in the Settings page, you can enable a table of contents in your knowledge base docs and fine tune the behavior.<br \/>\nBasePress can automatically generate a table of content for the articles in your KB; according to the headings (h1, h2, h3, etc.) used in the content. You can display the Table of Content at the top of the article and\/or in the sidebar with the dedicated <a href=\"https:\/\/basepresskb.com\/docs\/knowledge-base\/adding-content\/using-the-widgets\/\">widget<\/a>.<\/p>\n<figure id=\"attachment_1029\" aria-describedby=\"caption-attachment-1029\" style=\"width: 780px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1029 size-full\" src=\"https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/table-of-content-settings-1.png\" alt=\" Table of Contents Settings \" width=\"780\" height=\"467\" srcset=\"https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/table-of-content-settings-1.png 780w, https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/table-of-content-settings-1-300x180.png 300w, https:\/\/basepresskb.com\/docs\/wp-content\/uploads\/table-of-content-settings-1-768x460.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><figcaption id=\"caption-attachment-1029\" class=\"wp-caption-text\">Table of Contents &#8211; Settings<\/figcaption><\/figure>\n<ol>\n<li><strong>Show Table of Content on articles:<\/strong>It allows you to enable or disable the automatic table of content in the article&#8217;s body. If you want to add the table of content on the sidebar you can use the dedicated widget. The widget works even if you don&#8217;t enable this option.<\/li>\n<li><strong>Table of content title:<\/strong> This is the title that comes on top of the Table of Content. This doesn&#8217;t apply to the widget title as that can be set from the widget directly.<\/li>\n<li><strong>Show numbers on list items:<\/strong> This lets you choose if you want the Table of Content list to be numbered or not. This option applies to the widget as well.<\/li>\n<li><strong>Show Back to top link:<\/strong> Adds a link to go back to the top of the page. The link appears after each portion of your content, before a new heading.<\/li>\n<li><strong>Back to top link text:<\/strong> This is the text used for the link.<\/li>\n<li><strong>Show links to copy headings anchor URL to clipboard:<\/strong> When enabled a link would be added next to the post content headings to allow users to copy a direct link to the heading to the clipboard.<\/li>\n<li><strong>Tooltip text for &#8220;Copy Link&#8221;:<\/strong> This can be used to customize the tooltip text that appears when hovering the headings link.<\/li>\n<li><strong>Tooltip text for &#8220;Link Copied&#8221;: <\/strong>This can be used to customize the tooltip text that appears after clicking on the link and the link is copied to the clipboard.<\/li>\n<\/ol>\n<p><em>It is important to remember:<\/em> Every article has a title heading which renders with a h1 element. Therefore the content in your documentation should not contain another h1 heading for SEO purposes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Under the Table of Contents (TOC) tab in the Settings page, you can enable a table of contents in your knowledge base docs and fine tune the behavior. BasePress can automatically generate a table of content for the articles in your KB; according to the headings (h1, h2, h3, etc.) used in the content. You [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/basepresskb.com\/docs\/knowledge-base\/settings\/table-of-contents-settings\/\">Read More&#8230;<span class=\"screen-reader-text\"> from Table of Contents Settings<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[17],"knowledgebase_tag":[],"class_list":["post-688","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-settings"],"_links":{"self":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/comments?post=688"}],"version-history":[{"count":5,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/688\/revisions"}],"predecessor-version":[{"id":1639,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/688\/revisions\/1639"}],"wp:attachment":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/media?parent=688"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase_cat?post=688"},{"taxonomy":"knowledgebase_tag","embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase_tag?post=688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}