marekskopal/typo3-google-font

Includes Google Font in your TYPO3 website.

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v1.0.1 2024-11-14 13:57 UTC

This package is auto-updated.

Last update: 2024-12-14 14:10:19 UTC


README

Description

This TYPO3 extension includes Google Font in your TYPO3 website.

Unlike regular TypoScript adding, this extension adds Google Font in an asynchronous, non-blocking way. It also performs a preconnect for maximum loading efficiency

Installation

Add the extension to your project using Composer:

composer require marekskopal/typo3-google-font

Configuration

  1. Add the static template to your TypoScript template:

    • Go to WEB > Template module.
    • Select your root page.
    • Click on Info/Modify.
    • Click on Edit the whole template record.
    • Go to the Includes tab.
    • Add Google Font from the Available Items to the Selected Items.
  2. Add you Google Font to the TypoScript configuration:

plugin.tx_msgooglefont {
    settings {
        fontSrc {
            1 = https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap
        }
    }
}