Why Aren't Google Fonts Loading with Astra? - (Solution Inside)

No results found. Try again with different words?

Search must be at least 3 characters.

Google Fonts Not Loading with Astra

When you navigate to Typography tab in the customizer and choose to set font-family for text/heading or other content. You might see a blank list under the title Google Fonts. This means the Google Fonts available with astra are not loading on your site.

This can happen because of several reasons. One of them is described below-

Reason:

Astra includes a file with a list of all the Google fonts. This file is read when displaying all google fonts in the customizer. Some of the hosting providers have incorrect file permissions which do not allow reading the file. And so the Google Fonts list display empty.

How to fix:

1. Contact your host provider and ask them to provide a necessary file permission.
2. If the above point does not help, you can force wp_filesystem to use file_get_* functions by adding a custom code. This will allow displaying all Google Fonts on your site. Add the following constant in your wp-config.php file.

define( 'FS_METHOD', 'direct' );

 

Was this article helpful?
Did not find a solution? We are here to help you succeed.

Related Docs

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.