/link_alter

Drupal 8/9 - Alter menu link text by inserting HTML

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • Maintainers

INTRODUCTION

Alter menu links by inserting text or HTML code.

You can use this module for example to add Font Awesome code to your links.

Go to your menu link (for example: /admin/structure/menu/item/1) and find the "ALTER LINK TEXT" settings. Add some text or HTML code, choose the position where you want to insert the text and hit the "Save button".

NOTE: you cannot use this module to alter links provided by modules, like the logout link in the user account menu.

Blog post: http://dev.studiopresent.com/blog/back-end/altering-menu-links

REQUIREMENTS

This module requires no modules outside of Drupal core.

INSTALLATION

CONFIGURATION

There is no global configuration.

MAINTAINERS