To optimise your WordPress site’s performance, it’s best to load only the fonts your website actually uses. Here’s a step-by-step guide.
- Go to Google Fonts: 👉https://fonts.google.com
- Use the search bar to find a font (e.g., Roboto, Poppins, Lato, etc.), then click the font name to open its details page.
- Click the ‘Get font’ button.
- Click the ‘Get embed code‘ button.
- On the left panel, click on ‘Change styles‘ and select the weights and styles you need (e.g., 400, 700 italic, etc.).
- On the right side of the screen, under the Web tab, you’ll see a code block like this: <link href=”https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap” rel=”stylesheet”>
Copy the URL inside the href attribute of the tag: https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap - Go to your WordPress dashboard, navigate to GreyboxPro>Fonts.
- Paste the copied URL into the box labelled ‘Insert Google URL‘.
- Click ‘Save changes‘.