Awesome Hyvä for Magento 2 & Mage-OS with Hyvä Themes by JaJuMa
Awesome Hyvä extension by JaJuMa allows using Font Awesome 5 & Font Awesome 6 icons as SVGs on Magento 2 & Mage-OS sites using Hyvä Themes.
Hyvä Themes | Mage-OS | Magento |
Awesome Hyvä for Magento & Mage-OS with Hyvä Themes
- includes 3500+ icons:
- Font Awesome 5
- Solid Style Icons
- Regular Style Icons &
- Brands Icons
- Font Awesome 6
- Solid Style Icons
- Regular Style Icons &
- Brands Icons
- Font Awesome 5
- provides 6 ViewModels for adding icons in code
- allows adding Font Awesome Icons in CMS content from Backend.
Font Awesome 5 & 6 SVG icons for Hyvä Themes Demo:
List view and detail view with all included icons for copy & paste the code to use the icons in your project:
Install via composer as any other Magento extension from github:
composer require jajuma/awesomehyva
or get it from Extension Website
for manual installation in app/code/
as any other Magento extension.
JaJuMa "Awesome Hyvä" module provides 6 view models:
-
For Font Awesome v5:
AwesomeiconsSolid
AwesomeiconsRegular
AwesomeiconsBrands
-
For Font Awesome v6:
Awesomeicons6Solid
Awesomeicons6Regular
Awesomeicons6Brands
Require one of the view models in your template:
- For Font Awesome v5:
/** @var \Jajuma\AwesomeHyva\ViewModel\AwesomeiconsSolid $awesomeiconsSolid */
$awesomeiconsSolid = $viewModels->require(\Jajuma\AwesomeHyva\ViewModel\AwesomeiconsSolid::class);
/** @var \Jajuma\AwesomeHyva\ViewModel\AwesomeiconsRegular $awesomeiconsRegular */
$awesomeiconsRegular = $viewModels->require(\Jajuma\AwesomeHyva\ViewModel\AwesomeiconsRegular::class);
/** @var \Jajuma\AwesomeHyva\ViewModel\AwesomeiconsBrands $awesomeiconsBrands */
$awesomeiconsBrands = $viewModels->require(\Jajuma\AwesomeHyva\ViewModel\AwesomeiconsBrands::class);
- For Font Awesome v6:
/** @var \Jajuma\AwesomeHyva\ViewModel\Awesomeicons6Solid $awesomeicons6Solid */
$awesomeicons6Solid = $viewModels->require(\Jajuma\AwesomeHyva\ViewModel\Awesomeicons6Solid::class);
/** @var \Jajuma\AwesomeHyva\ViewModel\Awesomeicons6Regular $awesomeicons6Regular */
$awesomeicons6Regular = $viewModels->require(\Jajuma\AwesomeHyva\ViewModel\Awesomeicons6Regular::class);
/** @var \Jajuma\AwesomeHyva\ViewModel\Awesomeicons6Brands $awesomeicons6Brands */
$awesomeicons6Brands = $viewModels->require(\Jajuma\AwesomeHyva\ViewModel\Awesomeicons6Brands::class);
Then render the icons like this:
<?= $awesomeiconsRegular->addressBookHtml('text-red-100', 24, 24) ?>
<?= $awesomeicons6Regular->addressBookHtml('text-red-100', 24, 24) ?>
- The method name is the camel cased icon name, followed by Html.
- In an IDE you should have autocompletion for all available methods.
- The parameters are optional, and change the class (in single quotes) followed by 2 values for width and height attributes of the SVG element.
- It is recommended to set all of them, so that the images are not rendered in huge sizes if CSS fails to load.
or you may also pass additional attributes like this as an array:
<?= $awesomeiconsRegular->addressBookHtml('text-red-100', 24, 24, ['style'=>'position:relative']) ?>
<?= $awesomeicons6Regular->addressBookHtml('text-red-100', 24, 24, ['style'=>'position:relative']) ?>
Awesome Hyvä module adds an icon directive to render icons in filtered content like CMS blocks or pages. So you may add icons in text / code blocks like this:
Release <= 1.0.1
{{awesome "solid/address-book" classes="text-red-100" width=12 height=12}}
Release >= 2.0.0
{{icon "awesomeicons/solid/address-book" classes="text-red-100" width=12 height=12}}
{{icon "awesomeicons6/solid/address-book" classes="text-red-100" width=12 height=12}}
- "classes" parameter is used for setting any css class.
- "width"/"height" parameters are used for setting width/height attributes for icons.
- Hint: You may get the code snippets for copy & paste for each icon on the demo - see link below.
The code is licensed under the MIT License (MIT)
Other Magento 2 & Hyvä Themes Extensions by JaJuMa
-
🖼️ Performance & UX:
Ultimate Image Optimizer for Magento 2
AVIF & WebP Images, Lazy Loading, High-Resolution / Retina images -
🖼️ Performance & UX:
WebP Optimized Images for Magento 2
The #1 WebP Images Solution for Magento 2 -
🙈 SEO:
PRG Pattern Link Masking for Magento 2
Link Masking for Layered Navigation -
👮 User Experience:
Shariff Social Share for Magento 2
GDPR compliant and customizable Sharing Buttons -
🎥 Content Management:
Video Widget for Magento 2
Embedding YouTube videos, GDPR compliant with auto preview image & fully responsive -
🚀 Performance & UX:
Page Preload for Magento 2
Faster faster page transitions and subsequent page-loads by preloading / prefetching -
📈 Marketing:
Matomo Analytics for Magento 2
Web Analytics - GDPR Compliant -
🍯 Site Optimization:
Honey Spam Anti-Spam for Magento 2
Spam Protection - Reliable & GDPR Compliant -
🔔 Marketing:
Customer Registration Reminder & Cleanup for Magento 2
Increase Your Customer Engangement & Cleanup your Customer Account Data Automatically -
📣 UX & Marketing:
Category Grid Callouts for Magento 2
Enrich Your Category Grids With Eye-Catching Callouts -
💭 UX & Marketing:
Customer Satisfaction Feedback for Magento 2
Collect Valuable Feedback From Your Customers & Understand How To Satisfy Your Customers -
🎇 UX:
Auto Select Options for Magento 2
Automatically Select Configurable & Custom Options Based On Your Customer's Preferences -
↔️ UX & Performance:
Back Forward Cache - bfcache for Magento 2
Enable bfcache for Magento 2 for improved UX & Core Web Vitals -
➗ Accounting:
Dynamic Shipping Tax Plus for Magento 2
Dynamic Shipping Tax Calculation incl. pro-rata/proportional tax rates -
🔍 Search:
MySQL Search for Magento 2
MySQL Search for Magento 2 without Elasticsearch -
‼️ Performance:
Preload Critical Resources & Assets
Resource Hints for preloading important and critical resources -
Content Management:
git 4 Page Builder
Manage & deploy Magento 2 Page Builder content via git -
🚀 Performance:
Hyvä Inline CSS
Run Magento 2 without CSS file by inline all CSS -
⚡ Performance:
Smart Speculations Rules
Instant Page Navigations With Smart Data-Driven Prerendering Via Speculations Rules API -
👨💻 🆓 Content Management:
Syntax Highlighter 4 Page Builder
Syntax Highlighting and more for Magento 2 Page Builder -
🚩 🆓 UI & UX:
Awesome Hyvä for Hyvä Themes
Font Awesome 5 & 6 Icons for your Hyvä Themes Store -
🚩 🆓 UI & UX:
Hyvä Flags for Hyvä Themes
Country & Language Flag Icons for your Hyvä Themes Store -
🙆♂️ 🆓 User Experience:
Customer Navigation Manager for Magento 2
Easily manage the links in your Customer Account -
➗ 🆓 Accounting:
Dynamic Shipping Tax for Magento 2
Dynamic Shipping Tax Calculation -
❓ 🆓 Content:
Hyvä FAQ Widget for Hyvä Themes
FAQ Widget for your Hyvä Themes Store -
🧩 🆓 Admin Tools:
Magento Power Toys
Tools and helpers, a.k.a "Toys", for Magento Admins
-
🛍️ JaJuMa-Market: Marketplace Software
Complete Online Marketplace Software Solution. For Professional Demands. Feature Rich. Flexibly Customizable. -
🛒 JaJuMa-Shop
Customized Magento Shop Solutions. -
🚀 JaJuMa-Shop: Hyvä Magento Shop Development
Hyvä Magento Shop Development. -
📙 JaJuMa-Shop: Magento Handbuch in Deutsch
Magento Handbuch in Deutsch. -
🗂️ JaJuMa-PIM
Product Information Management. Simple. Better. -
➕ JaJuMa-Develop: Magento 2 Extensions
Individual Solutions For Your Business Case. -
🖌️ JaJuMa-Design
Designs That Inspire. -
👔 JaJuMa-Consult
We Show You New Perspectives.
© JaJuMa GmbH | www.jajuma.de