• Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese

Mocursor Smart TOC

  • Home
  • Trends
  • Mocursor Smart TOC
Mocursor Smart TOC
  • 2026-05-19
  • by LethaldiranMX
  • Trends
  • 0 Comments
Mocursor Smart TOC
Developer Moses Cursor Ssebunya
Version v1.0.2
Active Installs 0 +
Requires / Tested 6.4 / 7.0
Last Updated 2026-05-18 7:47pm GMT
Official Link View Details →
A powerful, lightweight Gutenberg block that automatically generates a linked, navigable table of contents from your post headings.

Mocursor Smart TOC is a lightweight, feature-packed Gutenberg block that automatically generates a linked table of contents from the headings in your posts and pages. Simply drop it into your content — it just works. Also available as a [mctoc] shortcode for classic editor users.

The block is fully dynamic, accessible, lightweight, and theme-aware. It uses WordPress design tokens and CSS custom properties so it inherits your theme’s colors, fonts, and spacing automatically.

Shortcode Support

The Mocursor Smart TOC block is also available as a [mctoc] shortcode for use in the classic editor, widgets, or theme templates.

Basic usage:

[mctoc]

With options:

[mctoc title="On This Page" include_h2="true" include_h3="true" include_h4="false" numbering="nested" collapsed="true" sticky="true" offset="100" skip="1" exclude_headings="Related Posts,Comments" back_to_top="true"]

Available shortcode attributes:

  • title — TOC heading text (default: “Table of Contents”)
  • include_h2 — Include H2 headings: “true” or “false” (default: “true”)
  • include_h3 — Include H3 headings: “true” or “false” (default: “true”)
  • include_h4 — Include H4 headings: “true” or “false” (default: “true”)
  • exclude_headings — Comma-separated heading texts to exclude
  • numbering — Numbering style: “none”, “decimal”, or “nested” (default: “none”)
  • collapsed — Start collapsed: “true” or “false” (default: “false”)
  • sticky — Enable sticky mode: “true” or “false” (default: “false”)
  • offset — Scroll offset in pixels for fixed headers (default: 80)
  • skip — Number of headings to skip from the start (default: 0)
  • back_to_top — Show “Back to Top” link: “true” or “false” (default: “false”)

Ideal Use Cases

Mocursor Smart TOC is perfect for:

  • Long-form blog posts — Help readers navigate 2,000+ word articles with ease.
  • Documentation and knowledge bases — Technical docs, how-to guides, and reference pages.
  • Online courses and tutorials — Give learners a clear roadmap of every lesson section.
  • Legal, policy, and compliance pages — Terms of service, privacy policies, and similar documents.
  • Product and feature pages — Long product descriptions with multiple sections.
  • Recipe and travel blogs — Readers can jump to the section they care about.
  • Wiki-style internal sites — Any WordPress site used as an internal wiki or resource library.
  • Accessibility-focused sites — The TOC gives keyboard and screen reader users a reliable way to navigate.
  • Classic editor users — The shortcode works perfectly in the classic editor.

Why Choose Mocursor Smart TOC?

  1. Zero configuration needed — Drop the block in and it works immediately.
  2. 100% Gutenberg-native + Shortcode — Built as a real Gutenberg block with a classic shortcode fallback.
  3. Dynamic and always up to date — Server-rendered, always matches the current content.
  4. Incredibly lightweight — No JavaScript frameworks. Pure vanilla JS for all interactivity.
  5. Deeply customizable — Rich inspector controls for heading levels, numbering, collapsibility, sticky mode, and more.
  6. Accessible by default — Proper ARIA attributes, keyboard navigation, semantic HTML, and focus management.
  7. Theme-aware — Uses WordPress design tokens and CSS custom properties.
  8. No lock-in — Deactivate the plugin and your content is untouched.
  9. Privacy-friendly — No external requests, no tracking, no analytics, no cookies.
  10. Open source — Licensed under GPLv2.

Block Features

  • Automatic heading detection for H2, H3, and H4
  • Heading level filtering with individual checkboxes
  • Exclude specific headings by text
  • Skip first N headings option
  • Three numbering styles: None, Decimal, Nested
  • Collapsible TOC with configurable default state
  • Smooth scrolling with configurable offset
  • Active heading highlight via IntersectionObserver
  • Back to Top link
  • Sticky mode
  • Live editor preview
  • Full block editor design controls (colors, typography, spacing, borders)
  • Shortcode support with full attribute control

How to Use

Method 1: Block Editor

  1. Install and activate the plugin.
  2. Open any post or page in the block editor.
  3. Click the block inserter (+), search for “Mocursor Smart TOC”, and insert the block.
  4. Customize via the block settings sidebar.
  5. Publish — the TOC renders with smooth scrolling and active heading tracking.

Method 2: Shortcode

  1. In any post, page, or widget, type [mctoc].
  2. Optionally add attributes: [mctoc title="Contents" numbering="decimal" collapsed="true"].

Method 3: PHP Template

<?php echo do_shortcode( '[mctoc title="Page Contents" numbering="nested"]' ); ?>

Tips:

  • Place the TOC inside a Group block with a max-width for a contained look.
  • Enable sticky mode for sidebar layouts.
  • Use the shortcode in classic editor widgets or template files.
  • wordpress plugin
Previous Post

Swinickiwsieci Slotivo Bookings

Next Post

Zuperix DAM

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Thoughts (1)
  • Trends (1,242)
  • Tutorials (1)

Recent Posts

2026-10-14
Agrunert E-Rechnung for ZUGFeRD
2026-10-13
Rotascore Live Scores Widget
2026-10-12
Ettrick Escape Room Booking
2026-10-11
Qrlastica – QR Code Generator with
2026-10-10
Anchormender – Internal Link Suggestions, Orphan

Archives

  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026

Tags

accessibility admin AI analytics automation backup blocks booking calendar chat chatbot checkout contact form contact form 7 content customer support ecommerce elementor forms GDPR GEO gutenberg lead generation live chat llms.txt login openai optimization payment gateway performance popup privacy products rest-api Schema security SEO shipping shortcode support tracking whatsapp widget woocommerce wordpress plugin
  • shape1
  • shape2
  • shape3
  • shape4
  • shape5
  • shape6
  • shape7

Newsletter SignUp!

    About Us

    GROWTH,ARCHITECTED.
    Empowering global brands through data-driven SEO, high-performance web development, and AI-forward strategies.

    Information

    • Extensions
    • Strategies
    • Creatives
    • Plugins

    Services

    • AI & Strategy
    • Growth Marketing
    • Operations & CRO
    • Tech & Analytics

    Office Address

    • Nan'an District, Chongqing
    • +86-133-1028-2690
    • [email protected]
    • +86-133-1028-2690
    © Copyright AEOSUB 2026 | Digital Growth & Full-stack Operations
    • Home
    • About
    • Case Study
      • Case Study 1
      • Case Study 2
      • Case Study 3
      • Case Study 4
      • Case Study 5
    • Elements
      • Blog
        • Blog Post 1
        • Blog Post 2
        • Blog Post 3
        • Blog Post 4
        • Blog Post 5
        • Blog Post 6
      • Service
        • Service Gallery 1
        • Service Gallery 2
        • Service Gallery 3
        • Service Gallery
        • Service Gallery 5
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Testimonial
        • Testimonial – 1
        • Testimonial – 2
        • Testimonial – 3
      • Contact Info Box
        • Contact Info Box 1
        • Contact Info Box 2
      • Info Box
        • Info Box 1
        • Info Box 2
        • Info Box 3
      • Miscellaneous
        • Brand Showcase
        • Counter 1
        • Progress Bar
        • Progress Box Image
        • Radius Button
        • Section Title Subtitle
      • Pricing
        • Pricing Plan 1
        • Pricing Plan 2
        • Pricing Plan 3
        • Pricing Plan 4
        • Pricing Plan 5
    • Pages
      • Service
        • Service Archive
      • Case Study
        • Case Study Archive
        • Single Case Study 1
        • Single Case Study 2
        • Single Case Study 3
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Typography
      • 404 Error
    • Blog
      • Blog 1
      • Blog 2
      • Blog 3
    • Contact
    Follow Us
    FREE ANALYSIS
    • Home
    • Services
      • Col 1
        • Tech & Analytics
        • Web Development
        • Technical Audit
        • Analytics & Tracking
      • Col 2
        • Growth Marketing
        • SEO Strategy
        • SEM & PPC
        • Social Growth
      • Col 3
        • AI & Strategy
        • Al Search (GEO)
        • SEO Content
        • Growth Consulting
      • Col 4
        • Operations & CRO
        • Conversion (CRO)
        • AI Automation
        • Full-stack Ops
    • Projects
      • Strategies
      • Plugins
      • Extensions
      • Creatives
    • Insights
    • About
    • Contact
    • English
      • Chinese
    Follow Us