• klewis

    (@blackawxs)


    I can see from some online guides on how to define custom font sizes for heading blocks from my theme.json file.

    "blocks": {
          "core/heading": {
            "typography": {
              "customFontSize": false,
              "fontSizes": [
                {
                  "slug": "small",
                  "size": "2rem",
                  "name": "small"
                },
                {
                  "slug": "medium",
                  "size": "2.25rem",
                  "name": "medium"
                },
                {
                  "slug": "large",
                  "size": "3rem",
                  "name": "large"
                }
              ]
            }
          }
        }

    …But how do we set the “default” font size for h2 heading blocks when they load onto the page for the first time. Upon inspecting it, its set to a font size of 52px, which is not any of the 3 rem sizes you see above.

    Where can I modify that initial default value?

    • This topic was modified 3 years ago by klewis.
    • This topic was modified 3 years ago by klewis.
    • This topic was modified 3 years ago by klewis.
  • The topic ‘How to set the default font size for heading blocks’ is closed to new replies.