Permalink
Browse files

Fix for elusive webfonts for blogs with CDN

  • Loading branch information...
1 parent 609d43b commit fccd91cad82c1cbb5c8b95dc9184e3211957e005 @mhawksey committed Jan 10, 2014
Showing with 10 additions and 6 deletions.
  1. +9 −5 1.5.3/css/{elusive-webfont.css → elusive-webfont.php}
  2. +1 −1 1.5.3/functions.php
@@ -1,10 +1,14 @@
+<?php header("Content-type: text/css"); ?>
+<?php
+$ur = urldecode($_GET['url']);
+?>
@font-face {
font-family: 'Elusive-Icons';
- src:url('../inc/fonts/Elusive-Icons.eot');
- src:url('../inc/fonts/Elusive-Icons.eot?#iefix') format('embedded-opentype'),
- url('../inc/fonts/Elusive-Icons.woff') format('woff'),
- url('../inc/fonts/Elusive-Icons.ttf') format('truetype'),
- url('../inc/fonts/Elusive-Icons.svg#Elusive-Icons') format('svg');
+ src:url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.eot');
+ src:url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.eot?#iefix') format('embedded-opentype'),
+url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.woff') format('woff'),
+url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.ttf') format('truetype'),
+url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.svg#Elusive-Icons') format('svg');
font-weight: normal;
font-style: normal;
}
View
@@ -356,7 +356,7 @@ function tinyforge_scripts_styles() {
$wp_styles->add_data( 'tinyforge-ie', 'conditional', 'lt IE 9' );
// 5.7 - Add CSS file of the Elusive-icon font.
- wp_enqueue_style( 'elusive-iconfont-style', get_template_directory_uri() . '/css/elusive-webfont.css',
+ wp_enqueue_style( 'elusive-iconfont-style', get_template_directory_uri() . '/css/elusive-webfont.php?url='.urlencode(get_template_directory_uri()),
array(),
'1.0',
'all' );

0 comments on commit fccd91c

Please sign in to comment.