Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #215739

    Hello,

    I’m trying to install a custom font to use with Enfold theme, and I’ve tried some other topics here, and also tried the @font face script + Font Squirrel package fonts… but it’s just not working for me.

    http://virtuavenue2.ripegroup.com/

    The font that I want to use is http://www.fonts.com/font/exljbris/museo-slab/500/web-font

    I have created a folder inside the theme folder called ‘fonts’

    I then added the script to my custom.css

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

    And then in the quick .css I put this:
    h1, h2, h3, h4, h5, h6 {
    font-family: ‘museo_slab500’, “Times New Roman”, Helvetica, Arial, sans-serif; }

    Currently in the Enfold theme options / headings / I have Coustard selected – but when I revert this to ‘no custom font’ the site heading fonts look like they revet to Times New Roman…

    So I’m a bit stuck – not sure how to add a custom font to Enfold that’s not a Google Font – and also does not mean I have to sign up to a paid plugin/subscription to use them.

    Any detailed help would be greatly appreciated!! (I’m not very technical :)
    Thank you!!

    #215776

    Hey aweirick!

    Please replace it with this:

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

    Best regards,
    Ismael

    #216040

    Thanks Ismael,

    Although it’s not showing the font… I added the code you had provided to my custom.css, then added the below text to the theme quick css:

    h1, h2, h3, h4, h5, h6 {
    font-family: ‘museo_slab500’, Helvetica, Arial, sans-serif !important;
    font-weight: normal;
    font-weight: 500;
    font-style: normal; }

    But the font shows now as Helvetica.

    Any other ideas on how to get the custom font working in the theme?

    Thanks again for your help and advice,
    Alison

    #216111

    Hey!

    Try using the direct url to your fonts instead of relative. So the url will point to the actual url where your fonts are on your server.

    The theme doesn’t really have any interaction in this case and its just a matter of adding in the @font-face correctly.

    Best regards,
    Devin

    #225822

    Hi
    Just to let you know I got the font issue resolved using a plugin called ‘Typekit Fonts for WordPress’. Because I have an Adobe CC account – the use of the fonts is free, and was an easy way to install the fonts.
    Thanks for your assistance.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘New custom font’ is closed to new replies.