• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

@font face Issues

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › @font face Issues

This topic is: not resolved

Tagged: font-face

  • This topic has 3 replies, 2 voices, and was last updated 12 years ago by chillybin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 10, 2014 at 12:14 am #89603
    manavecplan
    Member

    Hi,

    I'm trying to use @font face on my site without enqueueing or importing the stylesheets. Saves an extra http call.

    What I am doing is:

    1) Adding the font face kit for Open Sans Regular to /themes/bossa/fonts/opensans_regular_macroman
    2) Adding the following code to bossa/stylesheet.css:

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

    3) Targetting the body content by the following code:

    body {
    background-color: #f5f5f5;
    color: #666;
    font-family: 'open_sansregular', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.625;
    }

    However, none of this seems to be activating the font on my site. What am I doing wrong here?

    February 10, 2014 at 8:13 am #89661
    chillybin
    Member

    Check the location of your fonts directory

    The way you have it set up is that its looking for this folder

    domain.com/fonts

    if you have it as a sub directory of your child theme, you will want to use

    fonts without the first /


    We are a web design & development consultancy based in Singapore who specialise in all things WordPress & Genesis. | ChillyBin Web Design & Consultancy: http://www.chillybin.com.sg | Twitter: @chillybindesign

    February 10, 2014 at 11:10 pm #89736
    manavecplan
    Member

    Thanks for replying guys!

    I didn't know about the / issue so that's a great insight in any case...

    The problem persists though...now, tried it with the "/fonts" and simple "fonts". Should I be attempting to rename the folder or something?

    P.S. Lovely mod of Parallax pro on your site...the "Our Work" Section seems to be broken though.

    February 11, 2014 at 9:39 am #89830
    chillybin
    Member

    I'm not using Parallax pro, just a custom theme. Thanks for letting me know about the work issue, i've been having issues with Royal Slider and W3 Total Cache, it seems to need manual refreshing every day... A problem for another day...

    Do you have a link to your site? the fonts folder should be in

    wp-content/themes/bossa/fonts/

    where the style.css file is in

    wp-content/themes/bossa/style.css

    Otherwise you could use the following for each of the fonts

    @font-face {
    font-family: ‘open_sansregular’;
    src: url(‘http://www.domain.com/wp-content/themes/bossa/fonts/opensans_regular_macroman/OpenSans-Regular-webfont.eot’);
    }

    We are a web design & development consultancy based in Singapore who specialise in all things WordPress & Genesis. | ChillyBin Web Design & Consultancy: http://www.chillybin.com.sg | Twitter: @chillybindesign

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble