[wp-trac] [WordPress Trac] #49318: Twenty-Twenty: content font CSS selector is too important
WordPress Trac
noreply at wordpress.org
Wed Jan 29 07:27:45 UTC 2020
#49318: Twenty-Twenty: content font CSS selector is too important
---------------------------+-----------------------------
Reporter: alexandreb3 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 5.3
Severity: normal | Keywords:
Focuses: css |
---------------------------+-----------------------------
The CSS selector used to define the content font-family is too important.
https://themes.trac.wordpress.org/browser/twentytwenty/1.1/style.css?rev=122235#L3524
{{{
.entry-content p,
.entry-content ol,
.entry-content ul,
.entry-content dl,
.entry-content dt {
font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond,
"Times New Roman", serif;
letter-spacing: normal;
}
}}}
As a result, it's very difficult to override without custom CSS
(especially for beginners that doen't code). Even a page builder can't
edit the font without custom CSS (example with Elementor here
[https://youtu.be/FW-6rbDd4WI])
Why not only use this to set the default font ?
{{{
.entry-content{
font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond,
"Times New Roman", serif;
letter-spacing: normal;
}
}}}
This way the main font-family is set for all the content and can be easily
customized without custom CSS.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49318>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list