[resolved] disable google font (3 posts)

  1. danielle_r
    Posted 2 years ago #

    Hi all,

    I'm running the latest version of WP with the child theme accessible-onetwo as the child theme. This uses twentytwelve 1.2 theme as a parent.

    I just want to do something which I thought would be simple: change the font for the entire site to sans-serif. But now it appears that google fonts are embedded. I've found some old code to disable using google fonts altogether but this has disappeared from functions.php. I'm at a loss now how to disable the use of google and the custom font.

    Any help is greatly appreciated. TIA, danielle

  2. danielle_r
    Posted 2 years ago #

    FYI, I've found the solution from this site: http://wordpress.stackexchange.com/questions/66524/remove-open-sans-from-twenty-twelve-theme
    I've made a new functions.php to put in the child theme. Then I copied this piece of code there:

    function mytheme_dequeue_fonts() {
             wp_dequeue_style( 'twentytwelve-fonts' );
    add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 );

    Don't ask me what it means but it works :)

    Hope this helps someone, best, d

  3. jasom
    Posted 2 years ago #

    You can use plugin Disable Google Fonts. I wrote an article about it How to disable Google font Open Sans in WordPress 3.8

Topic Closed

This topic has been closed to new replies.

About this Topic