Anchor Block

Description

Jetez l’ancre, matelots !

Cette extension propose un bloc Gutenberg Ancre pour vous permettre de générer des liens internes vers chaque section de vos pages.

Captures d’écran

  • Bloc ancre sur Gutenberg
  • Localisé dans la section Mise en page de l’éditeur de blocs.
  • Rendu de la navigation d’un élément de menu personnalisé vers une ancre sur la partie publique d’un site

Blocs

Cette extension fournit 1 bloc.

  • Anchor Block

Installation

  1. Installez l’extension et activez-la.
  2. Utiliser le « Bloc ancre », disponible dans les blocs de MISE EN PAGE sur l’éditeur Gutenberg.

Avis

12 mars 2022
Just a warning: This plugin causes tabs created by another plugin to be treated as anchors, causing the page to jump whenever a tab is clicked. Unfortunately, this pushes the tabs just off the top of the screen, and with vertical tabs hides the top of the text contained in the tab. TRhis makes the tabs pretty much unusable, so you have to choose which plugin is most important and dump the other.
5 juin 2020
When I started working in WP, I as totally surprised anchors were so restricted and frustrated. This solves that problem simply and straightforwardly.
1 juin 2020
...a list of already defined anchors to speed up entering the correct destination link in (for example) a button.
24 mai 2020
Such a simple yet INGENIOUS little plugin that elegantly solves a bugger of an issue with Gutenberg WordPress... inserting "Anchors" (i.e. Page Jumps) into pages. As someone who can edit HTML code quite well, I find it awkward how WordPress makes it to add "anchors" to any place in a document OTHER THAN Headers (Gutenberg has this built in, but JUST for headers). Trying to add the HTML code id="xyz" to anywhere else (text, pictures, etc) forces you to convert the block to pure HTML, thereby losing the block editing structure for all else related to that particular block. So now you have to work with BOTH Block and HTML content on a single page. There is no way to just add the HTML "id code" and keep the existing Gutenberg Block editing structure for all other aspects of the paragraph or picture. Trust me, if I wanted to work in HTML, I would. But there are reasons why I use WordPress and this one caveat of forcing mixed editing styles is just dysfunctional. Enter Gutenberg Anchor BLock! Simply add it to your page, just as you would any other block, just above where you want an anchor point, enter a unique name for the anchor, and voila... you're DONE! A genius of an idea for which the developer, Jean-Baptiste Audras, should get royalties when it becomes a built-in of the next Gutenberg update. See, it truly IS the little things in life that make you the happiest!
2 avril 2020
This is a nice method to integrate anchor links in gutenberg editor. However the top spacing is sadly not working for me. I'm using the Astra theme. I placed the anchor block just before a heading
Lire les 7 avis

Contributeurs & développeurs

« Anchor Block » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“Anchor Block” a été traduit dans 6 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « Anchor Block » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

0.1

  • Premier commit de l’extension. Tout fonctionne bien 🙂