{"id":412,"date":"2019-11-12T14:42:38","date_gmt":"2019-11-12T08:42:38","guid":{"rendered":"http:\/\/betterdocs.co\/?post_type=docs&#038;p=412"},"modified":"2023-11-05T19:38:55","modified_gmt":"2023-11-05T13:38:55","password":"","slug":"table-of-contents-toc","status":"publish","type":"docs","link":"https:\/\/betterdocs.co\/zh\/docs\/table-of-contents-toc\/","title":{"rendered":"What Is Sticky Table Of Contents (TOC) &amp; How To Enable It In BetterDocs?"},"content":{"rendered":"<h2 class=\"wp-block-heading\"><strong>What Is Sticky Table Of Contents (TOC)? How To Enable It?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TOC stands for Table of Contents. In many instances, you might need to use different Heading Tags inside your Doc. If you use multiple headings, <a href=\"http:\/\/betterdocs.co\/zh\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>BetterDocs<\/strong><\/a><strong> <\/strong>\u5c06\u5728\u76ee\u5f55\uff08TOC\uff09\u6846\u5185\u5305\u542b\u6807\u9898\uff0c\u8fd9\u4e9b\u6807\u9898\u5c06\u6d6e\u52a8\u5728\u6587\u6863\u9875\u9762\u4e0a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TOC\u7684\u597d\u5904\u662f\u60a8\u7684\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u6587\u6863\u5185\u7684\u6807\u9898\u4e4b\u95f4\u6765\u56de\u8df3\u8f6c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1341\" height=\"540\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-71.gif\" alt=\"Table Of Contents\" class=\"wp-image-10193\" title=\"What is Sticky Table of Contents (TOC) &amp; How to enable it in BetterDocs? 1\"  loading=\"eager\"\/><figcaption><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How To Enable BetterDocs TOC?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To enable the TOC option, first open your WordPress Dashboard and navigate to <strong>BetterDocs \u2192 Settings \u2192 Layout \u2192 Single Doc \u2192 TOC.<\/strong>\u4ece\u90a3\u91cc\u786e\u4fdd <strong>to <\/strong>enable<strong> Table of Content (TOC)<\/strong> \u548c <strong>\u2018Sticky TOC\u2019<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"1347\" height=\"607\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-72.gif\" alt=\"Table Of Contents\" class=\"wp-image-10194\" title=\"\" loading=\"eager\" fetchpriority=\"high\"><figcaption><\/figcaption><\/figure>","protected":false},"excerpt":{"rendered":"<p>If you add multiple headings to a Doc Page, BetterDocs can add them inside a TOC (Table of Contents Box) that will stay afloat over with a sticky table of content on every single documentation. Just make sure the BetterDocs Table of Contents &amp; Sticky Table of Contents feature is enabled. \u00a0<\/p>","protected":false},"author":6,"featured_media":0,"template":"","meta":{"_eb_attr":"","inline_featured_image":false,"_eb_data_table":"","_xspeed_no_cache":false,"_xspeed_expiry_hours":0,"footnotes":""},"doc_category":[308],"doc_tag":[10,13],"knowledge_base":[282],"class_list":["post-412","docs","type-docs","status-publish","hentry","doc_category-learning","doc_tag-betterdocs","doc_tag-learning","knowledge_base-wordpress"],"year_month":"2026-09","word_count":112,"total_views":"70664","reactions":{"happy":"74","normal":"16","sad":"17"},"author_info":{"name":"\u963f\u5361\u4ec0","author_nicename":"akash","author_url":"https:\/\/betterdocs.co\/zh\/author\/akash\/"},"doc_category_info":[{"term_name":"Learning","term_url":"https:\/\/betterdocs.co\/zh\/docs\/wordpress\/learning\/"}],"doc_tag_info":[{"term_name":"betterdocs","term_url":"https:\/\/betterdocs.co\/zh\/docs-tag\/betterdocs\/"},{"term_name":"learning","term_url":"https:\/\/betterdocs.co\/zh\/docs-tag\/learning\/"}],"knowledge_base_info":[{"term_name":"WordPress","term_url":"https:\/\/betterdocs.co\/zh\/docs\/wordpress\/","term_slug":"wordpress"}],"knowledge_base_slug":["wordpress"],"_links":{"self":[{"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/docs\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/users\/6"}],"version-history":[{"count":7,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/docs\/412\/revisions"}],"predecessor-version":[{"id":10195,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/docs\/412\/revisions\/10195"}],"wp:attachment":[{"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/doc_category?post=412"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/doc_tag?post=412"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/knowledge_base?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}