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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard