[wp-trac] [WordPress Trac] #63852: Twenty Twenty-Five: Code block does not use fallback to default monospace font (was: Code block does not use fall back to default Monospace font with TwentyTwentyFive theme)

WordPress Trac noreply at wordpress.org
Thu Aug 21 23:02:58 UTC 2025


#63852: Twenty Twenty-Five: Code block does not use fallback to default monospace
font
---------------------------+------------------------------
 Reporter:  climatesaver   |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  6.7
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => has-patch
 * version:  6.8.2 => 6.7
 * type:  defect (bug) => enhancement


Comment:

 I switched this to an enhancement because
 [https://github.com/WordPress/twentytwentyfive/pull/141 PR 141] indicated
 a preference for Fira Code instead of a monospace system font.

 The patch worked for me in trunk and with WordPress 6.7, adding
 `monospace` inside the `var()`.
 `font-family: var(--wp--preset--font-family--fira-code, monospace);`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63852#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list