XF2 Add-on [OzzModz] Easy Google Fonts 2.0.0

virgilio183

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
May 16, 2021
Messages
25,956
Reaction score
35,563
Points
113
NullCash
628,030
This small handy addon allows you to easily add Google Font embed codes directly to your theme using a single Style Property, instead of using messy template edits.

How to use
1. Visit the Google Fonts website and select your fonts & weights
2. Copy the <link> embed codes supplied on the page
3. Paste these codes into the Font Scripts field on the Style Properties -> Typography page for your style.
4. Add the name of your Google font to the body font family on the Style Properties -> Typography page.

Selecting fonts
xenforo-2-addon-easy-google-fonts-select-fonts.png

Embedding fonts
xenforo-2-addon-easy-google-fonts-style-properties-settings.png

FAQ

Q. Where can I find the settings for this addon?

A: You can find the field for pasting font codes in Style Properties -> Typography

Q. How do I paste the codes? Where do I get it from?
A: You should always paste the code as supplied directly on the Google Fonts website after selecting your fonts. See the above screenshot for example. Google supplies this code in three lines - you should copy and paste all three lines, similar to this:

Compatible XF Versions: 2.1 , 2.2
 

Attachments

  • Nulumia-GoogleFonts-2.0.0.zip
    41 KB · Views: 0
Top