MD Fontello
51 sites
Security covered
Drupal 10–11
This module allows you to easily integrate icon fonts from Fontello into your Drupal site. You can upload your downloaded Fontello fonts and then use them directly in Twig templates or with integrated fields.
Allow users to easily and conveniently use font imported from Fontello in their theme and module.
Installl and import font
- Select and download font from Fontello.
- Enable module MD Fontello
- Go to admin/structure/md_fontello/add, add name and downloaded file to import.
Using icon
Use with twig syntax:
{{ md_icon('font_name', 'class_icon') }}
example
{{ md_icon('font_awesome', 'icon-video') }}
Add libraries font only:
-
Twig:
{{ attach_library('md_fontello/md_fontello.machine_name') }}
example
{{ attach_library('md_fontello/md_fontello.font_awesome') }} - Or hook_page_attachments
function hook_page_attachments(array &$attachments) { // Unconditionally attach an asset to the page. $attachments['#attached']['library'][] = 'md_fontello/md_fontello.font_awesome'; }
Integrations
- Field Icon: Support field icon with UI selecter
- Field Link: Support field link show with icon
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 8.x-1.9 | Stable | 10–11 | The one with D11 support 1️⃣1️⃣🚀 | Jul 2, 2025 |