load google webfonts (paste the full url)

PHOTO EMBED

Thu Jul 22 2021 21:35:05 GMT+0000 (Coordinated Universal Time)

Saved by @Alz #php

// Add Google webfonts
function load_fonts() {
        wp_register_style('googleFonts', 'https://fonts.googleapis.com/css?family=Comfortaa:400|Fredericka+the+Great|Work+Sans:400,700');
        wp_enqueue_style( 'googleFonts');
    }

add_action('wp_print_styles', 'load_fonts');
content_copyCOPY

https://borishoekmeijer.nl/tutorials/wordpress-snippet-collection/