Last active
February 2, 2016 07:00
-
-
Save ideag/1a88774e976ea47efaef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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