Site logo

[Support request] How to change preformatted block font style generatepress

Home Forums Support [Support request] How to change preformatted block font style generatepress

Home Forums Support How to change preformatted block font style generatepress

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1829271
    robchanoi

    Hi, … I set up a page using the preformatted font in classic ed. as I like the grey background it gives but would like to change the font type.
    I don’t see font type has been raised here for preformatted text.

    Would smth like this work:

    pre{
    font-family: ‘Noto Serif’, Georgia, Times, serif;
    background-color: inherit;
    border: none;
    }

    Thanks.

    #1829409
    David
    Staff
    Customer Support

    Hi there,

    that CSS will work, IF that font is being loaded – if you have the Noto Serif font set to any element in the Customizer > Typogaphy settings then it will load.

    #1830028
    robchanoi

    Thanks David.
    Found this elsewhere.
    I changed background colour “inherit” to #F2F2F2 which works, but for Helvetica which I’d like to use and is being used for h1, h2, h3 under Customizer > Typogaphy settings, not picking it up.

    pre{
    font-family: ‘Helvetica’, Georgia, Times, serif;
    background-color: #F2F2F2;
    border: none;
    }

    #1830307
    Elvin
    Staff
    Customer Support

    Hi there,

    The element pre inherits its font from what you’ve set on Appearance > Customize > Typography > Body.

    If you want to set something specific applied only to that element, you’ll have to write a custom CSS for it. 🙂

    #1838405
    robchanoi

    That’s clear – thanks Elvin.

    #1839187
    Elvin
    Staff
    Customer Support

    No problem. Glad to be of any help. 😀

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