Forum Discussion

ashisman's avatar
ashisman
Contributor
7 years ago

How to change font to the custom font

We need to change the font on all over the page and add custom font.

Please provide me the solution.

Thanks

  • ashisman

    You can use page specific CSS, you need to use the page name

    body.CommunityPage {
    // CSS goes here 
    }

    You can use custom fonts as well. You need to upload the files in the asset and include it in CSS file as below

    @font-face{
    font-family: MyFont;
    src: url('html/assets/myfont.ttf');
    }

     

     

  • ashisman

    You can use page specific CSS, you need to use the page name

    body.CommunityPage {
    // CSS goes here 
    }

    You can use custom fonts as well. You need to upload the files in the asset and include it in CSS file as below

    @font-face{
    font-family: MyFont;
    src: url('html/assets/myfont.ttf');
    }