Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 768 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 768 Bytes

Wagtail Font Awesome SVG

Add Font Awesome SVG icons to your Wagtail project.

Install

pip install wagtail-font-awesome-svg

Add wagtailfontawesomesvg to your installed apps.

INSTALLED_APPS = [
    'wagtailfontawesomesvg',
]

Usage

This is an overview of available icons. Choose an icon and add it via your wagtail_hooks.py:

from wagtail import hooks

@hooks.register("register_icons")
def register_icons(icons):
    return icons + [
        'wagtailfontawesomesvg/brands/facebook.svg',
        'wagtailfontawesomesvg/regular/face-laugh.svg',
        'wagtailfontawesomesvg/solid/yin-yang.svg',
        ...
    ]