krista-m
12/20/2017 - 1:03 AM

Add Scripts, Google Fonts, Font Awesome, and Stylesheets

Load custom scripts, Google fonts, Font awesome, and style sheets to Genesis child theme

//* Enqueue Scripts and Styles
add_action( 'wp_enqueue_scripts', 'olivia_enqueue_scripts_styles' );
function olivia_enqueue_scripts_styles() {

	wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,700,400italic', array(), CHILD_THEME_VERSION );

  wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' );
	
	wp_enqueue_script( 'olivia-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0', true );
	$output = array(
		'mainMenu' => __( 'Menu', 'olivia' ),
		'subMenu'  => __( 'Menu', 'olivia' ),
	);
	wp_localize_script( 'olivia-responsive-menu', 'oliviaL10n', $output );

}