• Resolved audunmb

    (@audunmb)


    Is there a way to disable the fonts that are loaded by Twentig? I only want the fonts that are set by my (child) theme, and not load any more fonts. (But I want some of the other features of this plugin).

    Would something like the code here work? (I’m working with Twenty Twenty Three and a child theme).

    (BTW: I’m not asking about how to load Google fonts locally, I know how to do that.)

    • This topic was modified 11 months, 1 week ago by audunmb. Reason: added clarification
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Yann

    (@collet)

    Hi,

    To disable the fonts added by Twentig, you can add the following PHP code to the functions.php file of your child theme:

    function disable_twentig_fonts() {
        add_filter( 'twentig_curated_google_fonts', '__return_empty_array' );
    }
    add_action( 'after_setup_theme', 'disable_twentig_fonts' );

    We will consider including an easier method to disable these fonts in a future release.

    Have a nice day,
    Yann

    Thread Starter audunmb

    (@audunmb)

    thanks, that will work for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable fonts by Twentig’ is closed to new replies.