b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Back-office Reference
  3. Collections
  4. Contents
  5. Renderers Reference
  6. Auto Anchors Plugin

Auto Anchors Plugin

This renderer plugin automatically adds id="..." attribute to your <h1>-<h6> headers.
This also adds a hidden link with an anchor icon that becomes visible when hovering over a header text like:

Auto Anchors Plugin

This plugin is bundled with b2evolution version 6.11.2+

Example

The header:

<h2>This is a title with Spécial Chârs</h2>

will be converted to the following:

<h2 id="this-is-a-title-with-special-chars" class="evo_auto_anchor_header">
  This is a title with Spécial Chârs <a href="#this-is-a-title-with-special-chars" class="evo_auto_anchor_link">{anchor icon}</a>
</h2>`

BUT if the header already has an ID, as in <h2 id="custom-id">This is a title with Spécial Chârs</h2>, then no new ID will be generated.

Usage

You can create Short Links with named anchor using the following syntax:

  • ((#this-is-a-title-with-special-chars Test))
  • ((item-slug#this-is-a-title-with-special-chars Test))

The Short Links plugin adds a button after each header with an attribute id="..." for quickly inserting links to that header:

Auto Anchors Plugin

Plugin Priority

It is recommended to let this plugin run after all other plugins that may generate titles (e-g: Markdown Plugin).

Tags: 7.0.2
Created by fplanque • Last edit by winskie on 2019-10-14 05:35 • •

No feedback yet

On this page

  • Example
  • Usage
  • Plugin Priority

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
    • Site
    • Collections
      • Collection Dashboard
      • Contents
        • Post Browsing Screens
        • Post Edit Screen
        • Short Tags Reference
        • Post Concepts
        • Mass Edit
        • Mass Post Contents
        • Other post actions
        • Renderers Reference
          • Wiki Tables Plugin
          • Auto Anchors
      • Comments
      • Categories
      • Features
      • Skins
      • Widgets
      • Settings
      • Creating a new collection
    • Files
    • Analytics
    • Users
    • Messages
    • Emails
    • System
    • Working with Results Tables
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Community CMS

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque