Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Fonts not loading after migration

  • Hi, I’m trying to use the new font library feature, it’s very handy. It was working correctly on the staging site, but when I migrated to the live site, the fonts are not loading, I cleared the cache and tried disabling the cache. I have tried deleting the installed fonts and reinstalling them but still not working. I found the page has the <link> tag to load the fonts css in the uploads folder, but it’s just not loading on the page. Any idea why this is happening?

    https://imgur.com/a/eor0BgE

  • I think I know what happened there, do you know how I can fix it?

    https://imgur.com/a/CKFE1g4

  • I found a temporary solution
    wp_dequeue_style( ‘generatepress-fonts’ );
    wp_enqueue_style(‘fonts-css’, home_url().’/wp-content/uploads/generatepress/fonts/fonts.css’);

    Is there a way to regenerate the font css link?

  • Hi there,

    We are aware of this issue, and we are working on a patch. It is due to the @font-face CSS not updating the font file URL after migration.

    For now, the easiest way to fix this issue is, after the site is migrated to a new domain, to go to the Font Library settings and disable and then re-enable the font. This should regenerate the font CSS and fix the font file URL altogether.

  • Just wanted to add an upvote for sorts for fixing this issue. It’s getting quite annoying!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.