Support » Themes and Templates » Embedded font only working on one page

  • Resolved ikbenbritt

    (@ikbenbritt)


    Hi there,

    I just embedded a font in my theme but the weird thing is.. It’s only working on the first page of my website. The page you enter (index.php) shows my blog titles in the right font but when you go to a single page or the next page it’s not working anymore..

    My site is: http://brittplaza.nl/tstsrvr/

    Any idea how this is possible and more important, how to fix it?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    You have this particular error on one of your font-problematic pages;

    Failed to load resource: the server responded with a status of 404 (Not Found) http://brittplaza.nl/tstsrvr/featured/Sackers.ttf

    As fas as I’am concerned I have no feautured map on my server. Do I need one?

    I did the following, in my head.php I put:

    <style type=”text/css”>
    @font-face {
    font-family: Sackers;
    src: url(“Sackers.eot”) /* EOT file for IE */
    }
    @font-face {
    font-family: Sackers;
    src: url(“Sackers.ttf”) /* TTF file for CSS3 browsers */
    }
    </style>

    and then in my css I used ‘Sackers’ as my main font.

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Try using a more specific URL path to your font.
    E.g

    ("/wp-content/themes/yourThemeName/Sackers.eot")

    Aaaah it’s that simple!

    Thanks you veeeeeeeeeeeery much!

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    And Thank you for contributing to the WordPress.org community 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Embedded font only working on one page’ is closed to new replies.