Google Fonts Installation Module for Magento 2
- SKU
- M2-FONTS
Description / Google Fonts Installation Module for Magento 2
MAGENTO 2 · TYPOGRAPHY · GOOGLE FONTS
Give your store a look that fits your brand.
Kowal Google Fonts Installer
Add the Google Fonts embed code in the Magento admin panel and use the selected font in your theme. Separate the font loading configuration from the template typography settings.
Embed code · Admin panel configuration · Theme typography
HOW IT WORKS IN PRACTICE
01 · Choose a font
Prepare the embed code for the selected font in Google Fonts.
02 · Save the configuration
Enable the module and paste the code into the google_fonts field.
03 · Configure the theme
Assign the font family in the styles and deploy the changes.
What does your store gain?
Explore the module features, use cases, and settings.
Discover the module
The Kowal Google Fonts Installer module is a solution that lets you easily integrate any font from the Google Fonts library into your Magento 2 store. With a simple and intuitive interface, you can quickly install and configure a new font, tailoring your store appearance to your brand needs.
Module features
Install any font from Google Fonts
Copy the font embed code from Google Fonts and paste it into the module configuration form.
Easy customization of LESS variables
After installing the font, you can quickly replace the font name in the LESS variable, for example:
@font-family-name__base: 'Roboto';
This applies the new font across the entire template.
Simple and intuitive interface
The module is designed so its configuration is easy even for users without development experience.
Compatibility with Magento 2
The module works with Magento version 2.4.7 and earlier.
Available as part of the Kowal Theme package
The module is available as part of Kowal Theme, making it an ideal choice for users of this template.
How to implement the module
Module installation
Install the module in your Magento 2 store using the instructions available in the module documentation.
Font configuration
Go to the Magento 2 admin panel.
Navigate to the module configuration section, for example Kowal Google Fonts.
Copy the font embed code from Google Fonts and paste it into the appropriate field.
Save the changes.
Replacing LESS variables
Open your template LESS files.
Find the @font-family-name__base variable and update it with the name of the installed font.
Recompile the LESS files so the changes are visible.
Verifying operation
Open the store frontend to check whether the new font has been implemented correctly.
Store appearance and the Kowal Theme package
Why choose the Kowal Google Fonts Installer module?
With this module, you can easily customize the visual appearance of your Magento 2 store, improving the user experience and enhancing the site aesthetics. The module helps save time by eliminating the need to manually add code to template files.
Buy now in a package with the Kowal Theme template and get access to this and many other useful tools that streamline your Magento 2 store!
Font loading and theme settings
In Stores → Configuration → Kowal → kowalfonts → settings, enable the module and save the Google Fonts code. The settings apply at the store view level. The module passes the saved code to the page header.
Assigning the font to store elements is handled in the theme styles. For themes using LESS, change @font-family-name__base and recompile the styles; themes with a different styling system require the appropriate configuration for that system. The module does not automatically download font files for local hosting.
Installation via Composer
Package: kowal/module-fonts; module: Kowal_Fonts. After configuring access to the Kowal repository, install the package, enable the module, run the Magento update, and clear the cache. For production mode, include compilation and static content deployment according to your store process.
From configuration to result
1. Choose a font
Prepare the embed code for the selected font in Google Fonts.
2. Save the configuration
Enable the module and paste the code into the google_fonts field.
3. Configure the theme
Assign the font family in the styles and deploy the changes.
One font, consistent presentation
Example for a LESS theme: you add the Roboto embed code, then set @font-family-name__base: 'Roboto'; in the theme styles.
After recompiling and deploying static content, check the store headings and body text. The module itself adds the font code, while the theme defines the appearance of the elements.
Match your store typography to your brand
Want to adapt the module to your store? Ask about implementing Kowal Google Fonts Installer and discuss the configuration or required extensions.
More Information
| Theme compatibility | Luma / Blank, KOWAL |
|---|
Module Installation Instructions
Installation
* In a production environment, please use the --keep-generated option
Type: Composer
- The module is available in the Composer repository:
- Kowal Composer repository:
https://repo.kowal.store
- Kowal Composer repository:
- Add the Composer repository to the configuration:
You will receive the access details for the Composer repository, including the customer email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace
TWOJ_EMAIL_KLIENTAwith your account email address andTWOJ_TOKENwith the token you received. Run the commands in the Magento root directory.composer config repositories.kowal composer https://repo.kowal.store - Configure access to the Kowal Composer repository:
composer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN' - Install the module using Composer:
composer require kowal/module-fonts - Apply database updates:
php bin/magento setup:upgrade - Clear the cache:
php bin/magento cache:flush