Configuring custom Google Fonts in WordPress
- Log in to your WordPress site with an administrator account.
-
On the Dashboard in the left sidebar, click Appearance, and then click Editor:
-
On the Theme Editor, select the Theme you want to edit from the dropdown:
-
The files for this selected theme are listed on the right column under Theme Files. Click on the file named “functions.php”:
- Add this code snippet / function at the bottom of your functions.php file:
- The above function uses ‘wp_enqueue_style’ tells WordPress to use this stylesheet (specified in the code above) inside the header of every page of your wordpress website.Open the CSS file and add the following code to use the Google Font: