Skip to content

swissup/module-font-awesome-5

Repository files navigation

Font Awesome 5

Font Awesome 5 for Magento2.

Contents

  1. Installation
  2. Usage
  3. Advanced Usage

Installation

  1. Get the sources

    cd <magento_root>
    composer require swissup/font-awesome-5
    bin/magento module:enable Swissup_Core Swissup_FontAwesome5
    bin/magento setup:upgrade
  2. Enable it for the stores you need at Stores > Configuration > Swissup > FontAwesome 5.

    If you are a happy FontAwesome Pro version user, you can enable CDN Pro feature as well.

Usage

  1. Search for icon you need at official FontAwesome site

  2. Copy and Paste selected code into HTML content.

    Example:

    <i class="fas fa-bicycle"></i>
    <i class="fab fa-magento"></i>
  3. That's all!

Advanced Usage

Looking for advanced usage examples? Here you go: