WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] disable google font (3 posts)

  1. danielle_r
    Member
    Posted 7 months 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
    Member
    Posted 7 months 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:

    <?php
    
    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
    Member
    Posted 1 week 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

Reply

You must log in to post.

About this Topic