How can I have two fonts in one heading?

To have two different fonts in one heading or other text-based blocks, just make the text “italic” (CMD + I / CTRL + I) and insert the following global CSS (in the Customizer or Site Editor):

PHP
/* Change Font Family on Italic */
em {
  font-family: var(--fontFamily1);
}

Make sure you change the CSS variable to the correct font family you’d like to use in this case.

Make text “italic”
Have two different fonts in one heading

Last updated: