b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Releases
  • Skins
  • Plugins
  • Locales
 
  • « Ping Twitter plugin
  • Wiki Tables Plugin »

Auto Anchors Plugin

Categories: Renderer Plugins, Bundled plugin, 6.x, Renderers Reference
Bundled plugin: If you're using a b2evolution version that supports this plugin, it is already in your plugins folder. There is no need to download it. If it is not installed yet, simply click "Install new" in your plugin list.

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

No feedback yet


Form is loading...

Plugin Repository

Plugins are little PHP scripts that allow you to add features that are not (yet) built into the b2evolution core.

How to...

  • Introduction to Plugins
  • How to install a plugin (after downloading it)
  • How to make a new plugin
 Upload a plugin!
Submit your own plugin

User log in

Lost your password?
Register »

Search by keyword

Filtering options

Retain only results that match:

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
What is RSS?

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