Skip to content

Add Google Fonts to WordPress.

    You can add Google Fonts to your WordPress site in under one minute. One minute to create a unique branding for your WordPress website. Why would you not do it?

    Using Google Fonts can give your site a customized look. In addition, fonts loaded from there will be faster than using self-hosted font files. Sometimes self-hosted fonts take the longest time to download by the browser. Fonts loaded from Google’s Content Delivery network (popularly known as CDN) will eliminate requests from your own server and also decrease latency on your server.

    To use Google Fonts on your WordPress website, add the following to functions.php in your theme.
    Remember to change the font with the font you want to use.


    function load_fonts() {
    wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=font');
    wp_enqueue_style( 'googleFonts');
    }
    add_action('wp_enqueue_scripts', 'load_fonts');

    Say Hello!

    adeeb@adeeb.org


    Let’s work together!

    I’ve been building websites since dialups walked the earth.
    I develop, design, architect & maintain websites.

    © Copyright 2009 – Forever Adeeb