This PR removes unnecessary font style + weight declarations from the home.html and index.html templates. These are unnecessary, because the same font weight rule is defined in theme.json already:
... and normal is already the default value for this text anyway.
Removing these from the templates provides more flexibility in customization from child themes, and through theme.json. For example, the "Swiss" variation in this PR tries to make all post titles bold. Before that rule was overridden here didn't work, but with this PR it works fine:
Before
After
There should be no appearance change by default, since these deleted rules exist already.
This PR removes unnecessary font style + weight declarations from the
home.html
andindex.html
templates. These are unnecessary, because the same font weight rule is defined in theme.json already:https://github.com/WordPress/twentytwentytwo/blob/e9f49804eab30b51b9cd9b7d6b16674f80483b2c/theme.json#L232
... and
normal
is already the default value for this text anyway.Removing these from the templates provides more flexibility in customization from child themes, and through
theme.json
. For example, the "Swiss" variation in this PR tries to make all post titles bold. Before that rule was overridden here didn't work, but with this PR it works fine:There should be no appearance change by default, since these deleted rules exist already.