Skip to content

Commit fccd91c

Browse files
committed
Fix for elusive webfonts for blogs with CDN
1 parent 609d43b commit fccd91c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: 1.5.3/css/elusive-webfont.css renamed to 1.5.3/css/elusive-webfont.php

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
<?php header("Content-type: text/css"); ?>
2+
<?php
3+
$ur = urldecode($_GET['url']);
4+
?>
15
@font-face {
26
font-family: 'Elusive-Icons';
3-
src:url('../inc/fonts/Elusive-Icons.eot');
4-
src:url('../inc/fonts/Elusive-Icons.eot?#iefix') format('embedded-opentype'),
5-
url('../inc/fonts/Elusive-Icons.woff') format('woff'),
6-
url('../inc/fonts/Elusive-Icons.ttf') format('truetype'),
7-
url('../inc/fonts/Elusive-Icons.svg#Elusive-Icons') format('svg');
7+
src:url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.eot');
8+
src:url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.eot?#iefix') format('embedded-opentype'),
9+
url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.woff') format('woff'),
10+
url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.ttf') format('truetype'),
11+
url('<?php echo $ur; ?>/inc/fonts/Elusive-Icons.svg#Elusive-Icons') format('svg');
812
font-weight: normal;
913
font-style: normal;
1014
}

Diff for: 1.5.3/functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ function tinyforge_scripts_styles() {
356356
$wp_styles->add_data( 'tinyforge-ie', 'conditional', 'lt IE 9' );
357357

358358
// 5.7 - Add CSS file of the Elusive-icon font.
359-
wp_enqueue_style( 'elusive-iconfont-style', get_template_directory_uri() . '/css/elusive-webfont.css',
359+
wp_enqueue_style( 'elusive-iconfont-style', get_template_directory_uri() . '/css/elusive-webfont.php?url='.urlencode(get_template_directory_uri()),
360360
array(),
361361
'1.0',
362362
'all' );

0 commit comments

Comments
 (0)