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 Platform Community / Forums / Power Pages / D365 Portal - Google Font
Power Pages
Unanswered

D365 Portal - Google Font

(0) ShareShare
ReportReport
Posted on by

Hey everyone - I've read any and every article I could on adding a custom google font to a theme.css file for portals and I can't seem to get anything to work. Can someone help break down exactly what I need to do in order to get a new font in my D365 Portal?

 

Much appreciated!

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Generally, you should create a new Web file for the custom font, upload the font as an attachment into the Web File record. Then modify the .css file to add custom font in it.

    The Detailed Steps shared by Oliver Rodrigues. SeeDynamics 365 Portals - using custom fonts 

     

    Create a Web File record for your custom font, for me, I am setting the following properties in the record:

    • Name: <custom font name>
    • Website: <website name>
    • Parent Page: <Home Web Page>
    • Partial URL: <custom font name>
    • Publishing State: Published
    • Enable Tracking: No
    • Hidden from sitemap: Yes
    • Exclude from search: Yes
    • all other: default

    Upload the font as a note attachment into the new Web File record

    Now for associating with your .css you have 2 options:

    • Change your main .css file, by default, is the bootstrap.min.css by adding the following line (this is also a Web File record, the .css file is located in the notes as well😞 
    @font-face {
     font-family: '<custom font name>'; 
     src: url('../<custom font name.ttf>');
    }

    OR you can specify it for a unique Web Page

    • Navigate to your Web Page record, you will see 2 records with the same name, open the child record (is root = NO)
      • Navigate to the Advanced Tab, and set the same lines of code in the Custom CSS field
    @font-face {
     font-family: '<custom font name>'; 
     src: url('../<custom font name.ttf>');
    }

    If you have a font in a public website, there is no need for creating the Web File and Upload the font, just point it in the Source of @font-face property directly in the .CSS

    There we go, just clear your Portal cache and refresh the page, the custom font is now available

     

    Hope this helps.

    Sik

  • Community Power Platform Member Profile Picture
    on at

    I have read these instructions previously. I am clearly missing something... where do I grab that src url? I download the google font zip and save the regular font ttf file and upload that as a note attachment to my new webfile. I went to adjust the bootstrap css but I think my source url is incorrect...wf.PNGbootstrap.PNG

  • Community Power Platform Member Profile Picture
    on at

    @v-siky-msft how do I figure out if my src url is correct? Do the steps I laid out look correct?

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 70 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard