Forums

W3 Total Cache
[resolved] Font problems with Firefox + MaxCDN (8 posts)

  1. Julian Fernandes
    Member
    Posted 4 months ago #

    Hello. I'm having trouble with Firefox and MacCDN... i setup everything on CDN tab in W3 Total Cache, but whhen i view it on Firefox, custom fonts don't load :/

    I already know it's because of cross-domain font embend, tryed the .htaccess hacks i have been seeing, but nothing helped.

    Is there any way i can just exclude it being loaded from the CDN? Since i use CloudFlare also, having 1 font not being loaded from MacCDN won't kill me i guess.

    I added wp-content/themes/ubuntubrsc/fonts/* to the rejected files textarea, cleared cache and all, but still don't work.

    I use this code to embend the fonts in my style.css file:

    @font-face {
    	font-family: 'LeagueGothicRegular';
    	src: url('fonts/League_Gothic-webfont.eot');                               /* IE9 Compatibility Modes */
    	src: url('fonts/League_Gothic-webfont.eot?iefix') format('eot'),           /* IE6-IE8 */
    		url('fonts/League_Gothic-webfont.woff') format('woff'),                /* Modern Browsers */
    		url('fonts/League_Gothic-webfont.ttf')  format('truetype'),            /* Safari, Android, iOS */
    		url('fonts/League_Gothic-webfont.svg#webfontbDMP4rcs') format('svg');  /* Legacy iOS */
    	font-weight: normal;
    	font-style: normal;
    	}

    So, is there any way i can stop those fonts from loading from CDN?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Julian Fernandes
    Member
    Posted 4 months ago #

    bump?

  3. KerCommunications
    Member
    Posted 4 months ago #

    Couple of things you might try:
    Go to your control panel at MaxCDN and purge the CDN's cache from there. That will sometimes clear up this type of "I did everything right but it still sucks" type of problem.

    If that doesn't work, use the full URL including http:// in the rejected files area. And double-check the path, too. If you have wordpress installed in a directory like yourdomain.com/blog/ you might need to add that.

    I really like W3 Total Cache and also use MaxCDN, but it does seem to have a bit of that old "delete everything, save, re-enter everything, save, clear cache, wave left hand with 3 fingers extended over keyboard while counting backwards from 13..." type of voodoo at times.

    Hope that helps.

  4. Julian Fernandes
    Member
    Posted 4 months ago #

    Sorry, forgot to update this.
    I fixed the problem. Just had to hard code the patch to the fonts in the style.css... so instead of /font/font.woff i used mydomain.com/wp-content/themes/mytheme/fonts/font.woff

    That fixed my problem :D

  5. AdamFlaherty
    Member
    Posted 3 months ago #

    Hi hitoriix, I'm having the same issue... I can't get MaxCDN to recognize my cufon font. Can you please tell me where I can find the style.css file that I need to modify to include the full URL of the font? I'm new to WP and it's file structures :-)

    Many thanks,
    [sig moderated as per the Forum Rules]

  6. Julian Fernandes
    Member
    Posted 3 months ago #

    Hello Adam :)
    The style.css is in the root folder of your theme.

    So it would be /wp-contet/themes/yourtheme/style.css :)

  7. AdamFlaherty
    Member
    Posted 3 months ago #

    Many thanks. The file only refers to the font, however, by font-family: "Trajan Pro"; as opposed to it's file name (Trajan_Pro_400-Trajan_Pro_700.font.js). Any thoughts?

  8. Julian Fernandes
    Member
    Posted 3 months ago #

    There must be something about it somewhere in your files. Maybe a include on header.php or at function.php... without looking at it, i can't help :/

Reply

You must log in to post.

About this Plugin

About this Topic