• 0

@font-face not loading in IE (WordPress)


Question

If you go to the main website, the @font-face is working fine on all browsers but when I go into the blog which is WordPress then my @font-face does not work in IE but works in Chrome and Firefox. Does anyone know why it does not work?

http://romabio.com/ <--- Main Site

http://romabio.com/newsstand/ <--- Blog WordPress


<div class="post">

<div class="datebg">
<div class="month"><?php the_time('M'); ?></div><div class="day"><?php the_time('d'); ?></div>
<img src="https://www.romabio.com/newsstand/wp-content/themes/RomaUSA/images/blog-date.png" alt="" title="" />
</div>

<div class="preview-image">
<em><?php the_post_thumbnail( array(620,295) ); ?></em>
<p>If you see this message then the image didn't load or was not found. <br />
Content the webmaster to fix the problem. <a href="mailto:[email protected]">[email protected]</a></p>
</div>

<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>

<div class="entry">
<?php the_content('Continue Reading ↑'); ?>
</div>
</div>
[/CODE]

[CODE]






@font-face {
font-family: 'Bold';
src: url('fonts/bold-webfont.eot');
src: url('fonts/bold-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/bold-webfont.woff') format('woff'),
url('fonts/bold-webfont.ttf') format('truetype'),
url('fonts/bold-webfont.svg#Bold') format('svg');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Book';
src: url('fonts/book-webfont.eot');
src: url('fonts/book-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/book-webfont.woff') format('woff'),
url('fonts/book-webfont.ttf') format('truetype'),
url('fonts/book-webfont.svg#Book') format('svg');
font-weight: normal;
font-style: normal;
}

[/CODE]

7 answers to this question

Recommended Posts

  • 0

Hmm, annoyingly I had the same problem but cannot think what it was!

Did you use font squirrel? If so literally copy everything they did for the CSS, evne the /* Gener...................

See if the problem still happens

I use the font squirrel gen code. I try to use a direct link to the font but then Firefox does not work. This is driving me crazy. It works if I use the CV in IE but I don't want it to do that. NON WordPress works fine. I'm testing it on IE10.

  • 0

I use the font squirrel gen code. I try to use a direct link to the font but then Firefox does not work. This is driving me crazy. It works if I use the CV in IE but I don't want it to do that. NON WordPress works fine. I'm testing it on IE10.

This is annoying me, as well. What do you mean by CV?

I'm thinking there's something wrong with the font file itself.

  • 0

This is annoying me, as well. What do you mean by CV?

I'm thinking there's something wrong with the font file itself.

Compatibility View

  • 0

Ah, for what it's worth, it doesn't work in IE8. Also the left column drops too low.

See here for some suggestions to try: http://stackoverflow.com/questions/12449512/why-does-one-of-these-font-face-render-in-ie8-but-the-others-dont/12459447#12459447

I'm thinking it might be a naming issue.

  • 0

which to this but it does not work :-(


@font-face {
font-family: 'Bold';
src: url('fonts/bold-webfont.eot');
src: local('?'), url('fonts/bold-webfont.woff') format('woff'),
url('fonts/bold-webfont.ttf') format('truetype'),
url('fonts/bold-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Book';
src: url('fonts/book-webfont.eot');
src: local('?'), url('fonts/book-webfont.woff') format('woff'),
url('fonts/book-webfont.ttf') format('truetype'),
url('fonts/book-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}
[/CODE]

  • 0

Try this, make your font location absolute rather than relative.

@font-face {

font-family: 'Bold';

src: url('/fonts/bold-webfont.eot');

src: local('?'), url('/fonts/bold-webfont.woff') format('woff'),

url('/fonts/bold-webfont.ttf') format('truetype'),

url('/fonts/bold-webfont.svg') format('svg');

font-weight: normal;

font-style: normal;

}

@font-face {

font-family: 'Book';

src: url('/fonts/book-webfont.eot');

src: local('?'), url('/fonts/book-webfont.woff') format('woff'),

url('/fonts/book-webfont.ttf') format('truetype'),

url('/fonts/book-webfont.svg') format('svg');

font-weight: normal;

font-style: normal;

}

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Well I've done a grand total of nothing, and it now clocks between 2010mhz and 1995mhz (stock is 1710mhz) and hovers around 80c, warmer than it used to, but tolerable clocks seem to have returned. Thanks for all the advice on this thread. Will review the evidence and make a choice.
    • Audacious 4.6.1 by Razvan Serea Audacious is a lightweight, open-source audio player that emphasizes simplicity, performance, and sound quality. Designed for Linux, Windows, and macOS, it supports a wide range of audio formats, internet radio streaming, and playlist management. Users can customize the interface with Winamp-style skins or modern themes, making it flexible for different preferences. Audacious also includes an equalizer, advanced audio effects, and a plugin system for extending functionality. Its low resource usage makes it especially suitable for older computers or users who value efficiency without sacrificing playback quality. Audacious key features: High audio quality – delivers clean, gapless playback with minimal distortion. Wide format support – plays MP3, FLAC, Ogg Vorbis, AAC, WAV, WMA, and more. Internet radio streaming – supports Shoutcast, Icecast, and other online streams. Winamp skin support – classic, nostalgic look for users who prefer the old-school style. Modern GTK-based interface – clean, simple UI with a more modern feel. Customizable themes – change appearance through skins and themes. Advanced playlist management – organize, save, and edit playlists with ease. Equalizer – fine-tune audio output with a built-in graphical equalizer. Audio effects – built-in DSP options like crossfade, replay gain, and more. Plugin system – extend functionality with additional components. File metadata support – displays and organizes music based on tags. Drag-and-drop support – quickly add songs or playlists. Global hotkey support – control playback without switching windows. Bit-perfect output modes – bypass system mixers for pure audio output. ReplayGain support – normalizes track loudness automatically. Cue sheet support – play entire albums from a single audio file with .cue. MPRIS2 integration – integrates with Linux desktop environments for media controls. Advanced resampling options – adjust playback quality with different resampler settings. Gapless playback – seamless transition between tracks encoded properly. Crossfade plugin – blend one song into the next smoothly. Last.fm scrobbling plugin – track listening history online. Remote control support – control Audacious via command-line or scripts. Lyrics plugin – display song lyrics if available. Alarm / timer plugin – start or stop playback at set times. SOX resampler plugin – high-quality resampling for audiophiles. Spectrum analyzer / visualization plugins – visual feedback while playing music. Headphone crossfeed effect – simulates speaker listening for headphones. Customizable buffer size – tweak latency and playback smoothness. Audacious 4.6.1 changelog: Use XDG cache dir to store temporary files (#1817) Accept embedded lyrics in more cases (#1818) Bump .so and plugin ABI versions retrospectively (#1819) Include Georgian translation (#1820) Fix build on systems using musl instead of glibc (#1823) Download: Audacious 4.6.1 | 48.2 MB (Open Source) Download: Portable Audacious 4.6.1 | 69.8 MB View: Audacious Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I really wonder if this has to do with the built in VPN or "private DNS" of browsers that trip up legal requirements like cookie consent and Cloudflare (to avoid all the botnet attacks we get). And BTW some botnets still manage to get past Cloudflare, we are constantly having to tweak it to block malicious traffic that ultimately cause a DDoS.
  • Recent Achievements

    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      +Edouard
      197
    3. 3
      PsYcHoKiLLa
      142
    4. 4
      ATLien_0
      89
    5. 5
      Steven P.
      80
  • Tell a friend

    Love Neowin? Tell a friend!