Copying theme settings to new theme with Error: not a valid font handle

Hi, I am trying to copy my theme settings from my current active (published) theme to my new theme in settings_data.json, but have run into an issue where I received the following message:

This file contains the following errors:

  • Error: ‘‘Helvetica Neue’, Arial, Helvetica, Geneva, sans-serif’ is not a valid font handle
  • Error: ‘Times, TimesNewRoman, ‘Times New Roman’, Baskerville, Georgia, serif’ is not a valid font handle

This message pertains to the following:

“header_font”: “Times, TimesNewRoman, ‘Times New Roman’, Baskerville, Georgia, serif”,
“body_font”: “‘Helvetica Neue’, Arial, Helvetica, Geneva, sans-serif”,

Nothing I try makes this error message go away without creating a different error, other than deleting the lines altogether (which I don’t want to do).

Hi there ,

some time ago most themes switched from Google fonts to Shopify font library. So these settings would not work anymore in new theme.

For new themes, it expects your font settings to be like:

"font_heading": "futura_n5",
      "font_body": "karla_n4",

The only way is to actually delete these lines from your JSON and then simply select these fonts back in Customizer.

1 Like

Thank you Tim!