Skip to main content

Font Awesome icons as SVG for Wagtail

Project description

Wagtail Font Awesome SVG

Add Font Awesome 5.14 SVG icons to your Wagtail project.

Note: Wagtail does not officially support SVG icons yet, but is working towards it. See Wagtail issue #6107 for progress.

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.core import hooks

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail-font-awesome-svg-0.0.3.tar.gz (522.1 kB view hashes)

Uploaded Source

Built Distribution

wagtail_font_awesome_svg-0.0.3-py3-none-any.whl (1.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page