Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #631216

    hi there, i followed all steps to install a custom font but it seems a wrong font is displaying. any idea why that could be?

    #631784

    Hi clairemartindigital,

    What font did you try to install and how? Please try to explain a bit further.

    Best regards,
    Rikard

    #631788

    Hi Rikard,

    the font i installed is Brandon Grotesque.

    Steps I took:

    1. Uploaded fonts via ftp to enfold/css/fonts
    2. added @font-face to enfold-child style sheet
    3. added css to define fonts via quick css

    h1 {
    font-family: ‘brandon_grotesqueblack’, Fallback, sans-serif;
    }

    body {
    font-family: ‘brandon_grotesquemedium’, Fallback, sans-serif!important;
    }

    .main_menu ul:first-child > li > a {
    font-family: ‘brandon_grotesque_regularRg’, Fallback, sans-serif!important;
    }

    .avia_transform a .image-overlay {
    font-family: ‘brandon_grotesquebold’, Fallback, sans-serif!important;
    }

    .js_sort_items {
    font-family: ‘brandon_grotesquebold’, Fallback, sans-serif;
    }

    #632689

    Hey!

    The font url is incorrect. Use the absolute url or directory of the fonts:

    /*Add your own styles here:*/
    @font-face {
        font-family: 'brandon_grotesquebold';
        src: url('brandon_bld-webfont.woff2') format('woff2'),
             url('brandon_bld-webfont.woff') format('woff');
        font-weight: normal;
        font-style: normal;
    }

    Regards,
    Ismael

    #632708

    Thanks Ismael – could you give me a hint what the url should be instead?

    Thanks

    #632713

    I changed it to below – no change:

    /*
    Theme Name: Enfold Child
    Description: A Child Theme for the Enfold WordPress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
    Version: 1.0
    Author: Kriesi
    Author URI: http://kriesi.at
    Template: enfold
    */

    /*Add your own styles here:*/
    @font-face {
    font-family: ‘brandon_grotesquebold’;
    src: url(‘fonts/brandon_bld-webfont.woff2’) format(‘woff2’),
    url(‘fonts/brandon_bld-webfont.woff’) format(‘woff’);
    font-weight: normal;
    font-style: normal;
    }

    @font-face {
    font-family: ‘brandon_grotesqueblack’;
    src: url(‘fonts/brandon_blk-webfont.woff2’) format(‘woff2’),
    url(‘fonts/brandon_blk-webfont.woff’) format(‘woff’);
    font-weight: normal;
    font-style: normal;

    }

    @font-face {
    font-family: ‘brandon_grotesquelight’;
    src: url(‘fonts/brandon_light-webfont.woff2’) format(‘woff2’),
    url(‘fonts/brandon_light-webfont.woff’) format(‘woff’);
    font-weight: normal;
    font-style: normal;

    }

    @font-face {
    font-family: ‘brandon_grotesquemedium’;
    src: url(‘fonts/brandon_med-webfont.woff2’) format(‘woff2’),
    url(‘fonts/brandon_med-webfont.woff’) format(‘woff’);
    font-weight: normal;
    font-style: normal;

    }

    @font-face {
    font-family: ‘brandon_grotesque_regularRg’;
    src: url(‘fonts/brandon_reg1-webfont.woff2’) format(‘woff2’),
    url(‘fonts/brandon_reg1-webfont.woff’) format(‘woff’);
    font-weight: normal;
    font-style: normal;

    }

    #633458

    Hi,

    Please use the full URL to the font so that you can verify that it is correct. For instance:

    http://yoursite.com/wp-content/themes/enfold/fonts/brandon_bld-webfont.woff2
    

    Regards,
    Rikard

    #633507

    Hi Rikard,

    still no difference.

    Regards

    Philipp

    #634041

    Hi,

    I changed the links to “http://yoursite.com/wp-content/themes/enfold/css/fonts/brandon_bld-webfont.woff2”, please review your website now

    Best regards,
    Yigit

    #634049

    resolved! thanks

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘wrong font displaying’ is closed to new replies.