Site logo

[Support request] Heading Block – Different fonts in one paragraph

Home Forums Support [Support request] Heading Block – Different fonts in one paragraph

Home Forums Support Heading Block – Different fonts in one paragraph

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2161752
    Matthias

    Hi there,

    i use the generateblocks heading block for text input of the website.

    Is it somehow possible for a heading,paragraph or similar to have 2 fonts in one block?
    Meaning a heading like “My favourite template is Generatepress – hands down.”
    Where everything is font a regular – but the Generatepress is font b (a strong/bold one).

    #2161867
    David
    Staff
    Customer Support

    Hi there,

    try this:

    1. Select the Headline Block and in Advanced > Additional CSS Class(es) add a custom class name eg. dual-font
    2. Select the test you want in the second font and from the Toolbar > Down Arrow menu select highlight
    3. Add this CSS:

    .dual-font .gb-highlight {
        font-family: 'font name here';
    }

    You need to make sure that this second font is added to the GP Typography system, and check the front end to see this change as the above CSS isn’t loaded in the editor by default

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.