Make WordPress Core

Opened 3 years ago

Closed 2 years ago

#60028 closed defect (bug) (worksforme)

Custom heading Fonts in theme.json and editor are overruled

Reported by: perthykjaerjensen Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version: 6.4.2
Severity: normal Keywords: has-screenshots reporter-feedback close
Cc: Focuses:

Description

Hi,

When I try to change the heading fonts in the editor, the font is visible. It will show up in the preview. But as soon as "save" is clicked the standard font is still there.

I have the same problem in twentytwentyfour/styles/

## Here I add a custom font

https://multimusen.dk/wp-content/uploads/font-a.png

## Now I click save

The theme fonts is still there.

https://multimusen.dk/wp-content/uploads/font-b.png

Since this is a problem in both Twenty Twenty Four and my theme from scratch I asume that this is a bug.

Attachments (2)

font-a.png​ (478.7 KB ) - added by poena 3 years ago.
font-b.png​ (347.2 KB ) - added by poena 3 years ago.

Download all attachments as: .zip

Change History (6)

#1 @poena
3 years ago

  • Component Themes → Bundled Theme
  • Keywords reporter-feedback added
  • Severity major → normal

Hi @perthykjaerjensen
I am changing the component from "Themes" to "Bundled theme" in case this is a problem with Twenty Twenty-Four, and for increased visibility.

Because this ticket was created four months ago, before the Font Library feature, I want to ask how you added the custom font choice to the theme?

Looking at the screenshots you provided, it does not look like the font that is used after you click save is the default font, "Cardo". To me, it looks more like the font family is missing.

I wonder if perhaps there is a typo in theme.json, because that is known to break some styling.

@poena
3 years ago

@poena
3 years ago

#2 @poena
3 years ago

I uploaded your images, so that they are not lost if your site changes.

#3 @karmatosed
3 years ago

  • Keywords close added

@perthykjaerjensen are you able to confirm if this was a typo? I agree with @poena that with the feature of the font library this should resolve or is expected to your issue. That said, if you are still experiencing this please let us know.

As we haven't had any response on this I am going to tentatively add the close keyword for now. We can always remove it or continue discussion should that be more valid. Thank you everyone.

#4 @karmatosed
2 years ago

  • Milestone Awaiting Review
  • Resolution → worksforme
  • Status new → closed

As this has waited a little while I am going to now close this. Thank you everyone for your collaboration so far.

Note: See TracTickets for help on using tickets.