• 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

    • AMAZON needs to take total accountability for this.
    • Server Summit had a heap of announcements, ADCS changes are baller.
    • Nice, hope they *finally* fixed the issue with the NTFS driver where the system would completely brick during large file copies using the built in driver. It's been broken for years requiring me to use the older, slower, NTFS-3G FUSE driver.
    • Windows 11 KB5094126 BSODing, freezing, forcing BitLocker lockout, breaks OneDrive, and more by Sayan Sen Microsoft released Windows 11 KB5094126 and KB5093998 last week as the latest Patch Tuesday updates. Following that the company also published the accompanying dynamic updates under KB5094149, KB5095971, and KB5094156. While Microsoft has so far not acknowledged any major problems with the release, some users online are running into problems. These range from OneDrive and Dropbox access issues, BitLocker recovery lockouts, to blue screens and BSODs. The most common one seems to be happening with HP systems wherein affected users say they hit 0xc0430001 BSOD (blue screen of death) error code after the KB5094126 update. We wonder if this could be related to the recent bug we covered on HP devices wherein the ongoing Secure Boot certificate updates are leading to similar issues. While we are not certain, users affected by this issue likely need to ensure that the boot.stl file is included on the installation media (such as a USB installer or ISO), if the above-mentioned dynamic updates are deployed. If this file is missing, computers may fail to boot from the installation media and could display the error 0xc0430001. This STL file is used by Secure Boot to verify that the boot files are trusted, so it must match the same Windows version and system architecture. To ensure the file is included, Microsoft recommends using the Update WinPE script, which automatically updates the image and handles the required files. Alternatively, you can manually copy the boot.stl file from the Windows\Boot\EFI folder on a Windows device and place it in the matching folder on your installation media before deploying the updated image. Aside from blue screening some users also note their systems have been freezing following the update. This could be happening to Lenovo PCs specifically. In the case of the OneDrive and Dropbox access issues, a user figured out that there could be a conflict with UAC. He explained: "Okay, so I did some digging, and in our environment KB5094126 breaks OneDrive and Dropbox in Explorer. I went through all our GPOs and found out that the combination of disabling UAC and having my user being a local admin breaks OneDrive in Explorer. ... If I enable UAC again, then it works, even with KB5094126 still installed." Hopefully, Microsoft will look into these issues. Source: Microsoft forum (link1, link2, link3, link4), Reddit (link1, link2, link3, link4)
    • It is when it's a desktop in my house though for a PC that's lightly used and not really important when it is. If it was a laptop, it would be a different story. The real solution is varied and begins starting at post #22 in that thread.
  • Recent Achievements

    • Week One Done
      Jeroen Wilms earned a badge
      Week One Done
    • 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
  • Popular Contributors

    1. 1
      +primortal
      508
    2. 2
      +Edouard
      197
    3. 3
      PsYcHoKiLLa
      138
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      80
  • Tell a friend

    Love Neowin? Tell a friend!