yan-k
4/24/2017 - 2:40 PM

Google Fonts for WordPress

Google Fonts for WordPress

<?php

function yanco_scripts() {
		if( !is_admin() ) {
			
	    $query_args = array(
			  'family' => 'Lora:400,700,400italic,700italic|Droid+Sans:400,700',
			 	'subset' => 'latin,latin-ext',
			 );
			wp_register_style( 'yanco-google-fonts', add_query_arg( $query_args, "//fonts.googleapis.com/css" ), array(), null );
			wp_enqueue_style('yanco-google-fonts' );
		}
	}
    add_action( 'wp_enqueue_scripts', 'yanco_scripts' );