#30678 closed defect (bug) (fixed)
Twenty Fifteen: Problem with fonts turned off
Reported by: | pavelevap | Owned by: | lancewillett |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
I tried to turn off all Twenty Fifteen fonts in localization files and following URL is called:
<link rel="stylesheet" id="twentyfifteen-fonts-css" href="//fonts.googleapis.com/css?family&subset=latin%2Clatin-ext" type="text/css" media="all">
There is also GET error in browser console. We should not call fonts when they are turned off by translators?
Attachments (2)
Change History (17)
#2
@
10 years ago
And related problem: I tried to make a child theme for 2015, but when I dequeued twentyfifteen-fonts
, then parent style.css was not loaded in child theme because there is following dependency:
wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array( 'twentyfifteen-fonts', 'genericons' ) );
I am not sure if it is a bug (or I am doing it wrong), but it should be possible to remove fonts from child theme?
#4
@
10 years ago
Yes, the 'twentyfifteen-fonts'
dependency should probably be removed.
In Twenty Fourteen, we didn't have 'twentyfourteen-lato'
as a dependency for the main stylesheet.
#5
@
10 years ago
We should probably remove all dependencies for style.css
. Twenty Twelve and Thirteen had no dependencies.
Twenty Fourteen has a Genericon dependency, which doesn't seem good to have. If Genericons are unavailable, the theme should still be styled.
#6
@
10 years ago
Removing Genericons dependencies sounds like a new ticket -- keeping this one focused on the fonts issue.
#7
@
10 years ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from new to closed
In 30832:
#8
follow-up:
↓ 10
@
10 years ago
But problem with Genericons is the same. When removed in child theme, no styles will be applied and it is wrong...
#9
@
10 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
It should be also committed into 4.1 branch?
#10
in reply to:
↑ 8
@
10 years ago
- Resolution set to fixed
- Status changed from reopened to closed
Replying to pavelevap:
But problem with Genericons is the same. When removed in child theme, no styles will be applied and it is wrong...
"Removing Genericons dependencies sounds like a new ticket -- keeping this one focused on the fonts issue."
Look Lance's comment above. Feel free to open a new ticket.
#11
@
10 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
For Genericons I will reopen #30532, there is no need for another ticket.
But this ticket was reopened because fix for fonts was committed only to trunk and not to 4.1 branch, even if it is marked for 4.1 milestone.
Good catch.