Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • robyrom Friend
    #197241

    I’m trying to change the font of the h3 title in the masshead module. I’ve modified the custom.css this way

    @font-face {
    font-family: ‘Chunkfive’;
    src: url (‘templates/ja_biz/fonts/font-awesome/fonts/Chunkfive-webfont.woff’) format (‘woff’);
    }
    .jamasshead h3 {
    font-family: ‘Chunkfive’;
    }

    but I didn’t achieve my aim. Firebug lets me see that the font-family for h3 is loaded so where is the problem? I’m using Firefox.
    Thanks.

    TomC Moderator
    #533031

    I had written some time back regarding usign @FontFace.
    Perhaps it may be helpful to you.

    robyrom Friend
    #533038

    I have already read that guide but I didn’t realize where I am wrong . A question: you mention the path to the file: do you intend the path starting from the location my custom.css is? I tried with the absolute path too but it didn’t work. Thanks.

    TomC Moderator
    #533039

    <em>@robyrom 424495 wrote:</em><blockquote>I have already read that guide but I didn’t realize where I am wrong . A question: you mention the path to the file: do you intend the path starting from the location my custom.css is? I tried with the absolute path too but it didn’t work. Thanks.</blockquote>
    Try it within the applicable CSS file that isn’t the custom.css file – as a kind of “trial and error” effort.

    See if that works.

    robyrom Friend
    #533113

    I added this lines to bootstrap.css

    @font-face {
    font-family: ‘Chunkfive’;
    src: url (‘../../../plugins/system/t3/base-bs3/bootstrap/fonts/Chunkfive-webfont.eot’) format (‘eot’);
    src: local(“☺”),
    url(“../../../plugins/system/t3/base-bs3/bootstrap/fonts/Chunk.otf”) format(‘otf’)
    url(“../../../plugins/system/t3/base-bs3/bootstrap/fonts/Chunkfive-webfont.woff”) format(‘woff’),
    url(“../../../plugins/system/t3/base-bs3/bootstrap/fonts/Chunk.ttf”) format(‘truetype’),
    url(“../../../plugins/system/t3/base-bs3/bootstrap/fonts/Chunkfive-webfont.svg”) format(‘svg’);
    }

    pointing to the same directory of a default font-face so I am sure of the correctness of the path, then I add a font-family entry in template.css in the jamasshead class but nothing happened. The system clearly doesn’t find the font but I don’t realize where the problem is. Any suggestion is welcomed.

    robyrom

    Ninja Lead Moderator
    #533806

    Please upgrade T3framework on your site to version 2.1.5 and open templates/ja_biz/css/custom.css file and add rule as you mentioned above


    @font-face {
    font-family: 'Chunkfive';
    src: url ('templates/ja_biz/fonts/font-awesome/fonts/Chunkfive-webfont.woff') format ('woff');
    }
    .jamasshead h3 {
    font-family: 'Chunkfive';
    }

    Once done, click Compile LESS to CSS button from back-end of JA Biz template (this action will be override all css files customized before that, so please backup them first)

    If it does not help, please pm me URL of your, admin login and FTP credentials info. I will help you out.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 3 voices, and was last updated by  Ninja Lead 10 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum