[Resolved] Adding custom fonts

Home Forums Support Adding custom fonts

This topic contains 2 replies, has 2 voices, and was last updated by  Leo 1 week, 2 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #645033

    Helen

    Hi

    I have followed all the instructions to add local fonts and I have successfully added one new font which I can select via the customiser. However I can’t add a second font – it’s not appearing in the customiser list. Below is the filter I am using. Do I have the syntax wrong? Hope you can help.

    Thanks,
    Helen

    add_filter( ‘generate_typography_default_fonts’, ‘tu_add_local_fonts’ );
    function tu_add_local_fonts( $fonts ) {
    $fonts[] = ‘proxima_novaextrabold, proxima_novaregular’;
    return $fonts;
    }

    GP Premium 1.6.2
    #645048

    Helen

    Don’t worry, I realised it should be:
    $fonts[] = ‘proxima_novaextrabold’;
    $fonts[] = ‘proxima_novaregular’;

    #645109

    Leo Customer Support

    Glad you’ve figured out 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.