RuffRuff TOC Help Center

Hide the TOC on Specific Content

How to hide the TOC on specific blog posts, products, pages, or collections only.

If you want to hide the table of contents on specific blog posts, products, pages, or collections, you can control this with a metafield.

You can hide the TOC on specific content by setting a "The Hide TOC Metafield" on that content.

  1. Open the target content (e.g., a blog post) in your Shopify admin

  2. Find the Metafields section at the bottom of the page (if not visible, add it via Custom data)

  3. Set the namespace and key table_of_contents.hidden to a value of 1 (integer type)

  4. Click Save

  • Name: Any text of your choice

  • Namespace and key: table_of_contents.hidden

  • Type: number_integer

  • Value: 1

  1. Go to Settings → Custom data

  2. Select the content type you want to hide the TOC on(In the example screenshot, "Blog posts" is selected)

  1. Click "Add definition"

  1. Fill in the definition fields:

    • Name: Any text of your choice

    • Namespace and key: table_of_contents.hidden

    • Type: Integer (number_integer)

  2. Click Save

  • When the metafield value is set to 1, the table of contents is hidden on that content.

  • Displaying a table of contents on products, pages, and collections requires the Regular plan or above.

  • Create the metafield definition separately for each content type where you want to hide the TOC.