{"id":5159,"date":"2022-03-24T15:11:15","date_gmt":"2022-03-24T09:11:15","guid":{"rendered":"https:\/\/betterdocs.co\/?post_type=docs&#038;p=5159"},"modified":"2024-11-17T17:07:00","modified_gmt":"2024-11-17T11:07:00","password":"","slug":"sticky-table-of-contents-with-betterdocs","status":"publish","type":"docs","link":"https:\/\/betterdocs.co\/it\/docs\/sticky-table-of-contents-with-betterdocs\/","title":{"rendered":"How To Add A Sticky Table Of Contents With BetterDocs?"},"content":{"rendered":"<p>Con <a href=\"https:\/\/apps.shopify.com\/betterdocs-knowledgebase\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>BetterDocs<\/strong><\/a>, you can add a <strong>Sticky Table Of Contents (TOC)<\/strong> to your Single Doc page in Shopify. If you use multiple headings (or heading tags) in your documentation, this knowledge base app will include the headings inside the Table of Contents box that will stay afloat over the documentation page. The TOC allows your users to bounce back and forth between different sections in your document.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How To Add A Sticky Table Of Contents With BetterDocs For Shopify?<\/strong><\/h2>\n\n\n\n<p>Follow the step-by-step guide below to learn how to add a sticky table of content in single docs in just a few steps.\u00a0<\/p>\n\n\n\n<p><strong><em>Nota: <\/em><\/strong><em>You must have BetterDocs for Shopify<\/em><strong><em> <\/em><\/strong><a href=\"https:\/\/betterdocs.co\/it\/docs\/install-betterdocs-for-shopify\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>installed and activated<\/em><\/strong><\/a><em> on your store to create the documents.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Enable The Table Of Contents<\/strong><\/h3>\n\n\n\n<p>To enable and add a Table Of Contents in your single documentation using BetterDocs, you need to first navigate to the <strong>&#039;Impostazioni&#039;<\/strong> tab from the app\u2019s homepage. Then, click on the <strong>\u2018Table Of Contents\u2019 <\/strong>option from the side panel.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfkwJ6UfoHVuDjmx4Zb0MBK7zZDSZgUQK99DrPi-QwSuCAYMRUSBXb_vh4K5d7Ff4a5m79boQEGYlXIQZD3Tun836wL2vWc0O5fCabf38uArjP3c2suylD-KJOHIrmT8cF1wFUtoEI-Ql3y9VLQqxTDljwS?key=2Lr2FWQDwXqMhy-_zGWdCQ\" alt=\"How To Add A Sticky Table Of Contents\" title=\"How To Add A Sticky Table Of Contents With BetterDocs? 1\"\/><\/figure>\n\n\n\n<p>Now, <strong>\u2018Turn On\u2019<\/strong> the <strong>\u2018Table Of Contents\u2019<\/strong> button to show the table of contents on the document page.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"463\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-7-1024x463.gif\" alt=\"\" class=\"wp-image-13109\" title=\"How To Add A Sticky Table Of Contents With BetterDocs? 2\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-7-1024x463.gif 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-7-300x136.gif 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-7-768x348.gif 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-7-1536x695.gif 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-7-18x8.gif 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-7-360x163.gif 360w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<p>Afterward, you can adjust the<strong> \u2018Content offset\u2019 <\/strong>and \u2018<strong>TOC supported heading tags<\/strong>\u2018 and click on the <strong>\u2018Save\u2019 <\/strong>button again.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"483\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-8-1024x483.gif\" alt=\"\" class=\"wp-image-13110\" title=\"How To Add A Sticky Table Of Contents With BetterDocs? 3\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-8-1024x483.gif 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-8-300x141.gif 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-8-768x362.gif 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-8-18x8.gif 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-8-360x170.gif 360w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Configure The Table Of Contents<\/strong><\/h3>\n\n\n\n<p>To configure the TOC, go to the \u2018<strong>Design your TOC page<\/strong>\u2019 section and press on the \u2018<strong>Design now<\/strong>\u2019 option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"449\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-9-1024x449.gif\" alt=\"\" class=\"wp-image-13111\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-9-1024x449.gif 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-9-300x132.gif 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-9-768x337.gif 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-9-18x8.gif 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2022\/03\/image-9-360x158.gif 360w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<p>Now, navigate to the left sidebar and select the \u2018<strong>Basic design<\/strong>\u2019. From here you can toggle the on or off the \u2018<strong>Enable toc hierarchy<\/strong>\u2019, \u2018<strong>Toc list number<\/strong>\u2019, and&nbsp; \u2018<strong>Enable sticky toc<\/strong>\u2019 options.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeh0bNp_f7M8qw35ftFtJY_rv1JhN9VU-TosIBqI-fRdEuTjpMBgBRMT_d0HOVY4gqWbUgswgfuczWsfSVnLqQJ9LrRJ4Tg7UQh63smU6FJ8PwjettaRM9h2kNTDjB_G7gSgj4ZAttNRq-TJAi3HfAoBXE?key=2Lr2FWQDwXqMhy-_zGWdCQ\" alt=\"\" title=\"\"><\/figure>\n\n\n\n<p>You can customize the \u2018<strong>Sticky toc width<\/strong>\u2019, \u2018<strong>Sticky toc margin top<\/strong>\u2019, \u2018<strong>Background color<\/strong>\u2019, \u2018<strong>Content area padding<\/strong>\u2019 etc and click on the \u2018<strong>Save<\/strong>\u2019 button to make the Table of content more stunning.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd1HAvCXwoLQgQb7l2fO-SMJ_JywoobG1-FBSQ-r5PipNpV02S01vBwvSD06JrBD9og7HQ3NsAe295XZgSMUJlMCY1_5_KaM2lk5-cHFAN8bPztSUgzexKkIosruneOKRFG3dnmhU4TxB22j-frwGR13a8?key=2Lr2FWQDwXqMhy-_zGWdCQ\" alt=\"\" title=\"\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Advanced Control to Design The Table Of Contents<\/strong><\/h3>\n\n\n\n<p>Once you have enabled the TOC, you can design different aspects of the Table Of Contents to match your store\u2019s branding. To do so, click on the \u2018<strong>Design\u2019<\/strong> \u2192 \u2018<strong>List Item\u2019<\/strong> to customize them.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfz5t68lsebWa0tPyFJSoYrD_r88iaHGtxIWQL6My7vJ8Ysj5VZVru9F0ahH07gTaoc6Dgf-t7gzkacO-gamNGhZ8tGlCsJZ_PR-qx50U_z6SG52NqyXzQzxEMEft4DHuA2rWYBQZGup79q-NpsWahWCJhO?key=2Lr2FWQDwXqMhy-_zGWdCQ\" alt=\"\" title=\"\"><\/figure>\n\n\n\n<p>Now go to the right side and customize <strong>\u2018Title font-size\u2019, \u2018List item font-size\u2019, \u2018TOC margin\u2019 <\/strong>and more options to design the TOC as your to your preferences. After customizing just hit on the <strong>\u2018Save\u2019 <\/strong>&nbsp;pulsante.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfCCgEay9SErnfQPJm47Dptwm-dDZqDHZZtZjfdpFrP7Kv8nkB8natf_jqJdCl6i9K53Dor75h192cMG3_aTVDwxA2dBRYlQsErVBBJFNKrUF4AFSjfrN-UNIvf2YgKG7VZxbUCLFmEzAhgdZF2hPqSX3Q?key=2Lr2FWQDwXqMhy-_zGWdCQ\" alt=\"\" title=\"\"><\/figure>\n\n\n\n<p>This is how easily you can add, configure, and design a <strong>Sticky<\/strong> <strong>Table Of Content <\/strong>on your Shopify account using BetterDocs.<\/p>\n\n\n\n<p>Still, facing difficulties? Feel free to <a href=\"https:\/\/storeware.io\/support\" target=\"_blank\" rel=\"noopener\"><strong>contact our dedicated support team<\/strong><\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Learn how to easily add a sticky Table Of content on your Documentation page to help users navigate easily. <\/p>","protected":false},"author":16,"featured_media":12369,"template":"","meta":{"_eb_attr":"","inline_featured_image":false,"_eb_data_table":"","_analytify_skip_tracking":false,"footnotes":""},"doc_category":[309],"doc_tag":[10,230,14,23,69,54,53],"knowledge_base":[283],"class_list":["post-5159","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-configurations","doc_tag-betterdocs","doc_tag-betterdocs-knowledgebase-gutenberg","doc_tag-configuration","doc_tag-customize","doc_tag-single-doc","doc_tag-sticky-table-of-content","doc_tag-table-of-content","knowledge_base-shopify"],"year_month":"2026-04","word_count":405,"total_views":"7303","reactions":{"happy":"2","normal":"2","sad":"4"},"author_info":{"name":"Tasnia","author_nicename":"tasnia","author_url":"https:\/\/betterdocs.co\/it\/author\/tasnia\/"},"doc_category_info":[{"term_name":"Configurations","term_url":"https:\/\/betterdocs.co\/it\/docs\/shopify\/configurations\/"}],"doc_tag_info":[{"term_name":"betterdocs","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/betterdocs\/"},{"term_name":"BetterDocs Knowledgebase Gutenberg","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/betterdocs-knowledgebase-gutenberg\/"},{"term_name":"configuration","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/configuration\/"},{"term_name":"customize","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/customize\/"},{"term_name":"Single Doc","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/single-doc\/"},{"term_name":"Sticky Table of Content","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/sticky-table-of-content\/"},{"term_name":"Table of Content","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/table-of-content\/"}],"knowledge_base_info":[{"term_name":"Shopify","term_url":"https:\/\/betterdocs.co\/it\/docs\/shopify\/","term_slug":"shopify"}],"knowledge_base_slug":["shopify"],"_links":{"self":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs\/5159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/users\/16"}],"version-history":[{"count":16,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs\/5159\/revisions"}],"predecessor-version":[{"id":13114,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs\/5159\/revisions\/13114"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/media\/12369"}],"wp:attachment":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/media?parent=5159"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/doc_category?post=5159"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/doc_tag?post=5159"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/knowledge_base?post=5159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}