Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @mrnick,

    Looks like the fonts aren’t loading. The browser’s trying to load them from: http://cardtherapy.co.uk/..fonts/dancingscript-regular-webfont.woff

    The way your theme’s custom CSS works is by outputting it at the root via http://cardtherapy.co.uk/?action=display_custom_css_code

    So, change your CSS to:

    @font-face{
    	font-family: 'dancingscript-regular';
    	src: url('/wp-content/themes/expound/fonts/dancingscript-regular-webfont.eot');
    	src: url('/wp-content/themes/expound/fonts/dancingscript-regular-webfont.eot?#iefix') format('embedded-opentype'),
    	     url('/wp-content/themes/expound/fonts/dancingscript-regular-webfont.woff') format('woff'),
    	     url('/wp-content/themes/expound/fonts/dancingscript-regular-webfont.ttf') format('truetype'),
    	     url('..fonts/dancingscript-regular-webfont.svg#webfont') format('svg');
    }
    
    h1,
    h2,
    h3 { font-family: 'dancingscript-regular'; }

    And that should do the trick.

    Obvious mistake was to leave the last url unchanged, but you knew that right?

    Thread Starter MrNickSheppard

    (@mrnicksheppard)

    Thanks! Sorted

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘@font-face in custom CSS’ is closed to new replies.