Skip to content

Installed font families are not downloaded to the theme folder when the option 'Clone theme' is used. #677

@matiasbenedetto

Description

@matiasbenedetto

What?

Installed font families are not downloaded to the theme folder when the option 'Clone theme' and after that changes are saved to the theme using Save Changes to the Theme` button.

This issue was found working on this: Automattic/themes#7865

Step by step:

  1. Install a font face
  2. Clone the theme using these buttons: Create Theme -> Clone Theme.
  3. Save using Save Changes to the Theme button.

Problem explained technically:

When Clone Theme is used and there are custom fonts activated in the global styles, these fonts are added using an absolute link in the new theme.json created. When the changes are saved using Save Changes to the Theme those fonts are not processed (they are not downloaded and the link is not transformed to be relative to theme).

Expected result

The Clone Theme option probably should have the same options so the user can control if the fonts are processed when the theme is cloned.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions