• I’m working on a child theme with theme.json customizations. I’m not sure why some font settings work for some blocks and not for others. For instance, the code below works wonderfully. I insert a button, and I can choose which font I want to use:

    "core/button": {
      "typography": {
        "fontFamilies": [
          {
            "fontFamily": "Asap, sans-serif",
            "name": "Asap",
            "slug": "asap"
          },
          {
            "fontFamily": "\"Museo Sans\", sans-serif",
            "name": "Museo Sans",
            "slug": "museo-sans"
          }
        ]
      }
    },

    However, it doesn’t show on paragraphs or headings, where I really need it to be:

    "core/paragraph": {
      "typography": {
        "fontFamilies": [
          {
            "fontFamily": "Asap, sans-serif",
            "name": "Asap",
            "slug": "asap"
          },
          {
            "fontFamily": "\"Museo Sans\", sans-serif",
            "name": "Museo Sans",
            "slug": "museo-sans"
          }
        ]
      }
    },
    "core/heading": {
      "typography": {
        "fontFamilies": [
          {
            "fontFamily": "Asap, sans-serif",
            "name": "Asap",
            "slug": "asap"
          },
          {
            "fontFamily": "\"Museo Sans\", sans-serif",
            "name": "Museo Sans",
            "slug": "museo-sans"
          }
        ]
      }
    },
Viewing 1 replies (of 1 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi @shpemu, it looks like not all blocks support font-family yet. Right now, there is Heading block support if you activate the latest Gutenberg plugin (standalone), but it’s not yet supported for paragraphs, and it’s not yet been merged back to Core.

    Here’s the tracking issue where you can follow which blocks currently support font-family:

    https://github.com/WordPress/gutenberg/issues/42646

    Shout-out to @greenshady for his help in pointing me in the right direction on this ??

Viewing 1 replies (of 1 total)
  • The topic ‘Font Family dropdown missing on Paragraph and Heading’ is closed to new replies.