web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Pages
Answered

Portal Fonts

(0) ShareShare
ReportReport
Posted on by 289

Hi all,

 

I have written some css to override fonts in my portal and it seems to work fine on desktop but when i load the portal on a mobile it changes to a strange font that is not on brand with the company I work for.

 

Does anyone know how I can force the portal to use a specific font throughout?

 

Thanks,

 

Matthu

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @matthu

     

    Please elaborate whether you are loading your custom fonts from CDN or from web files? Could you add a screenshot of where did you add the custom font to troubleshoot more? 

     

     

     

  • Matthu Profile Picture
    289 on at

    Hi   @ragavanrajan 

     

    All i have done so far is change fonts using css and copied content from word which is in the font I require. I imagine this method is so so so wrong! I think the copy and paste from word must put the font into the HTML and I change the fonts in headers etc with CSS like this:

     

    /* for main navigation text*/
    .navbar-static-top.navbar .menu-bar > .navbar-nav > li > a{
    font-family: roboto , Arial, Noto-Sans-SC, sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    font-color: #bebebc

     

    I want the whole website to be presented in Roboto - Light or arial ideally.

     

    Thanks for your input.

     

    Matthu

  • Matthu Profile Picture
    289 on at

    @ragavanrajan I think i have found a post relevant to this here: How to use custom font for web page in PowerApps P... - Power Platform Community (microsoft.com) but I have a few questions I have added to that post for clarification.

     

    Thanks

  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @matthu 

     

    If you are looking to load Roboto font, Then you no need to upload a web file because the portal is already loaded with some of the most used google fonts. 

     

    Here are the steps for you. 

     

    In Portal Studio: 

     

    1. Upload a "Custom.css" File 

    2. Add the following code in the custom.css file 

     

    body, html, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
     font-family: "Roboto" !important;
    }
    
    .navbar-static-top.navbar .menu-bar > .navbar-nav > li > a {
     font-family: "Roboto" !important;
    }

     

    3. Hit save and press sync configuration. Browse the website > Ctrl + F5 

     

     

    ragavanrajan_0-1635720967894.png

     

    Output: 

     

    ragavanrajan_1-1635721011271.png

    ragavanrajan_2-1635721040824.png

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
11manish Profile Picture

11manish 38

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 30 Most Valuable Professional

Last 30 days Overall leaderboard