{"id":1014,"date":"2020-01-29T11:38:04","date_gmt":"2020-01-29T05:38:04","guid":{"rendered":"http:\/\/betterdocs.co\/?post_type=docs&#038;p=1014"},"modified":"2024-11-17T17:09:51","modified_gmt":"2024-11-17T11:09:51","password":"","slug":"sticky-table-of-content-2","status":"publish","type":"docs","link":"https:\/\/betterdocs.co\/zh\/docs\/sticky-table-of-content-2\/","title":{"rendered":"\u5982\u4f55\u907f\u514dBetterDocs\u4e2d\u7684\u7c98\u6027\u76ee\u5f55\u91cd\u53e0\uff1f"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u7531\u4e8e\u4e3b\u9898\u4e0d\u540c\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230 <a href=\"http:\/\/betterdocs.co\/zh\/docs\/table-of-contents-toc\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>\u7c98\u6027\u76ee\u5f55<\/strong><\/a> \u4e0e\u60a8\u7684\u9875\u7709\u83dc\u5355\u6216\u9875\u811a\u91cd\u53e0\u3002\u7136\u800c\uff0c <a href=\"http:\/\/betterdocs.co\/zh\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>BetterDocs<\/strong><\/a> gives you the flexibility to increase the z-index of Sticky TOC so that it doesn\u2019t overlap any section of your WordPress Knowledge Base website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To increase the z-index of Sticky TOC, go to your <strong>wp-admin \u2192BetterDocs \u2192 Settings \u2192 Design<\/strong> tab. Then, click on the \u2018<strong>Customize in BetterDocs\u2019<\/strong> option under the \u2018<strong>Legacy Customizer<\/strong>\u2019 section.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1920\" height=\"879\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2020\/01\/1-Doc-Update-_-How-to-Avoid-Sticky-Table-of-Content-From-Overlapping-in-BetterDocs_-_-BetterDocs.gif\" alt=\"Click on the \u2018Customize in BetterDocs\u2019 option under the \u2018Legacy Customizer\u2019 section\" class=\"wp-image-13587\" title=\"\" loading=\"eager\"><figcaption><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Afterwards, go to the \u2018<strong>Single Doc\u2019<\/strong> page. From the <strong>&#039;\u8868\u4e2d\u7684\u5185\u5bb9&#039;<\/strong> section, you will find options to increase the z-index of the Sticky Table of Content. Simply use the <strong>\u2018Sticky TOC z-index\u2019<\/strong> option to increase the value, and you will be good to go.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"1600\" height=\"823\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-29.png\" alt=\"Sticky Table Of Content\" class=\"wp-image-10177\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-29.png 1600w, https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-29-300x154.png 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-29-1024x527.png 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-29-768x395.png 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-29-1536x790.png 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-29-18x9.png 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2023\/11\/image-29-360x185.png 360w\" sizes=\"(max-width: 1600px) 100vw, 1600px\"  loading=\"eager\" fetchpriority=\"high\"\/><figcaption><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u6837\u53ef\u4ee5\u907f\u514d <strong>\u7c98\u6027\u76ee\u5f55<\/strong> \u4e0eBetterDocs\u4e2dWordPress\u7f51\u7ad9\u7684\u5176\u4ed6\u90e8\u5206\u91cd\u53e0\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>Learn how BetterDocs lets you avoid Sticky Table of Content from overlapping with other sections of your WordPress website.<\/p>","protected":false},"author":5,"featured_media":1020,"template":"","meta":{"_eb_attr":"","inline_featured_image":false,"_eb_data_table":"","_xspeed_no_cache":false,"_xspeed_expiry_hours":0,"footnotes":""},"doc_category":[310],"doc_tag":[10,18,17,54,53,16],"knowledge_base":[282],"class_list":["post-1014","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-faq","doc_tag-betterdocs","doc_tag-documentation","doc_tag-knowledge-base","doc_tag-sticky-table-of-content","doc_tag-table-of-content","doc_tag-wordpress","knowledge_base-wordpress"],"year_month":"2026-09","word_count":140,"total_views":"12756","reactions":{"happy":"25","normal":"6","sad":"16"},"author_info":{"name":"rafin","author_nicename":"rafin","author_url":"https:\/\/betterdocs.co\/zh\/author\/rafin\/"},"doc_category_info":[{"term_name":"FAQ","term_url":"https:\/\/betterdocs.co\/zh\/docs\/shopify\/faq\/"}],"doc_tag_info":[{"term_name":"betterdocs","term_url":"https:\/\/betterdocs.co\/zh\/docs-tag\/betterdocs\/"},{"term_name":"documentation","term_url":"https:\/\/betterdocs.co\/zh\/docs-tag\/documentation\/"},{"term_name":"knowledge base","term_url":"https:\/\/betterdocs.co\/zh\/docs-tag\/knowledge-base\/"},{"term_name":"Sticky Table of Content","term_url":"https:\/\/betterdocs.co\/zh\/docs-tag\/sticky-table-of-content\/"},{"term_name":"Table of Content","term_url":"https:\/\/betterdocs.co\/zh\/docs-tag\/table-of-content\/"},{"term_name":"WordPress","term_url":"https:\/\/betterdocs.co\/zh\/docs-tag\/wordpress\/"}],"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\/1014","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\/5"}],"version-history":[{"count":7,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/docs\/1014\/revisions"}],"predecessor-version":[{"id":13588,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/docs\/1014\/revisions\/13588"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/media\/1020"}],"wp:attachment":[{"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/media?parent=1014"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/doc_category?post=1014"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/doc_tag?post=1014"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/betterdocs.co\/zh\/wp-json\/wp\/v2\/knowledge_base?post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}