Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

Embed Custom Fonts (as files)


I want to embed custom fonts which I got as files:


I did create webfiles with these files as attached notes:


Then I went to the portal editor and opened the mybootstrap.min.css, in which I inserted the css @font-face with references to the webfiles.



Unfortunately, when I clear the cache the font on the default home page of the custom portal did not change. Do I have to take further steps or delete default fonts in order to get them displayed?

Solution Sage
Solution Sage

Hi @newmay 


Please remove ".." from url:



Clear the cache and check please.


If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!


Hi! I did change it, yet I still dont recognize any changes.




Solution Sage
Solution Sage

Hi @newmay 


Please use something like this:



If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

Solution Sage
Solution Sage

as suggested by hardikv as the Parent page is set to Home it would just be '/', but also if standard bootstrap etc is defining the CSS items also then you may also need to include the "!important" directive for each CSS element so your CSS isn't overwritten.

Hi @Fubar!


This should work right? Somehow I see no changes. 


When I look into default css and search for font-families there are plenty of default, do I have to add the font again manually to specific selectors as here in the img?



Hi @newmay 


font-family should be in single quote and just add the name of font:

@font-face {
    font-family: 'Whitneybold' !important;
    src: url("/Whitneybold.otf") !important;



Solution Sage
Solution Sage

Also, make sure that you have cleared the Portal Cache after updating the file e.g <portal url>/_services/about (when logged in as Portal User with Administrators Web Role assigned).

And check that your file has pushed through from DataVerse to the Portal - <portal url>/<your css file name> 

Hi @Fubar 


I did it and I can download the webfiles via <portal url>/<webfile>. 


I pasted this code into css: 



That is one of the files: 



the items still show the portal default e.g. 

.navbar-static-top.navbar .menu-bar > .navbar-nav > li > a {
font-family: "Segoe UI Semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 1.25em;
font-weight: bold;


and if I refernce it in whitin font-family nothing happens

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Top Solution Authors
Users online (5,581)