Skip to content

Instantly share code, notes, and snippets.

@ideag
Last active February 2, 2016 07:00
Show Gist options
  • Save ideag/1a88774e976ea47efaef to your computer and use it in GitHub Desktop.
Save ideag/1a88774e976ea47efaef to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Apex Add Latin-extended
Plugin URI: http://arunas.co
Description: Add Latin-ext to Google fonts in Apex theme
Author: Arūnas Liuiza
Version: 0.1.0
Author URI: http://arunas.co
*/
add_action( 'wp_enqueue_scripts', 'arunas_apex_latin_ext', 100 );
function arunas_apex_latin_ext() {
// removes default Google Fonts
wp_dequeue_style( 'ct-apex-google-fonts' );
// registers Google Fonts with latin-ext
wp_register_style( 'ct-apex-google-fonts', '//fonts.googleapis.com/css?family=Open+Sans|Satisfy&subset=latin,latin-ext' );
// enqueues Google Fonts
wp_enqueue_style( 'ct-apex-google-fonts' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment