You can deactivate Google Fonts in WordPress without using a plugin by making changes to your theme’s stylesheet file (typically style.css). Here are the steps to do so:
- Locate the line of code that is including the Google Font in your theme. It should look something like this:
bashCopy code<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
- Remove this line of code from your theme’s stylesheet file.
- Replace the Google Font with a system font that is already installed on your visitors’ computers. This can be done by adding the following code to your stylesheet file:
cssCopy codebody {
font-family: Arial, sans-serif;
}
This will set the font for the body of your website to Arial, which is a common system font. You can replace Arial
with any other system font of your choice.
- Save the changes to your stylesheet file and upload it to your server. The Google Font should now be inactive on your website.
Note: Make sure to create a backup of your theme’s stylesheet file before making any changes. This will allow you to restore the original file if something goes wrong.
Last modified: March 3, 2023