Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Webicons

223 sites Security covered Drupal 9–11
View on drupal.org

This module allows you to easily add icons from various libraries, such as Boxicons and Font Awesome, to any entity field or directly within Twig templates. It provides a user-friendly way to select and display icons, simplifying the process for website developers.

Webicons module is here!

Using any icon library (like Boxicons, Free Font Awesome, etc.) is now easier than ever!

Features

With this lightweight module, you can add a Webicons field to any entity (Node, Taxonomy, Paragraphs, etc.) and specify which icon library to use (Boxicons, Font Awesome, etc.). You can insert one or many icons if the field is multiple.

Or... simply, render webicons directly in Twig templates using the 'webicon' function, examples:

Print a lock using the Material Icons library:
{{ webicon('materialicons', {'icon_code': 'lock'}, ['material-icons-outlined']) }}
Print a beer using the Boxicons library:
{{ webicon('boxicons', {'icon_class': 'bx bxs-beer'}) }}
Print a heart using de Fontawesome Free library:
{{ webicon('fortawesome', {'icon_class': 'fa-solid fa-heart'}) }}

By default, it includes 3 fairly comprehensive and free icon libraries.

Instructions

In three simple steps you will be able to add icon field to your entity.

  1. Add new field to your entity (Node, Taxonomy, Paragraph, etc.): Choose "Webicons Field" type and select the library to use.
  2. Edit your entity and press in "Select icon" button. Choose your desired icon in the selector dialog.
  3. Your icon is ready.

That's it, it's that simple!

Similar projects

Unlike other complex or unmaintained modules, Webicons provides an intuitive and straightforward way to insert icons into any entity that allows adding fields.

Supporting this Module

By supporting me on Buy me a coffe!, you're not only helping me continue my work but also contributing to the growth and improvement of Drupal for everyone.

Your support allows me to dedicate more time to developing and maintaining these modules, ensuring they remain reliable and up-to-date with the latest Drupal standards. Whether it's fixing bugs, adding new features, or providing support to fellow developers, your contribution directly fuels the progress of these projects.

Thank you for considering supporting my efforts. Together, we can build a stronger Drupal community and empower more websites with robust, customizable solutions. Let's continue making a positive impact together!

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

Tracked releases
1
Tracked since
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.1.1 Stable 9–11 Mar 4, 2025