Change default font in moodle 3.3.2

Change default font in moodle 3.3.2

av Elaheh Abolhassani -
Antall svar: 5

Hi!

I want to change moodle default theme font. I tried this but it didn't work. I tried to change theme css and add fonts but nothing worked! I searched web but I couldn't find any useful tutorial or something. Any help would be aprreciated.

Gjennomsnittlig vurdering: -
Som svar til Elaheh Abolhassani

Re: Change default font in moodle 3.3.2

av Mary Evans -
Bilde av Core developers Bilde av Documentation writers Bilde av Peer reviewers Bilde av Plugin developers Bilde av Testers

Hi,

The Default font-family is set in the main theme, which in Moodle 3.3 is Boost theme. However, you can change this, in the Custom CSS settings page of the theme you are using, to whatever font-family you prefer.

All you need to add is this:

body { font-family: 'DejaVu Sans' ; }

or whatever font-family name you prefer...

Hope this helps?

Mary

Som svar til Mary Evans

Re: Change default font in moodle 3.3.2

av Elaheh Abolhassani -
Thanks! You were right! I made so many other changes but what you said was correct. I also had a problem in identifying my font location. I corrected these 2 and it works now smiler
Gjennomsnittlig vurdering:Useful (1)
Som svar til Mary Evans

Re: Change default font in moodle 3.3.2

av A Banki -
What is the name of the default font family in Moodle? 

I changed the font; now I want to revert back, but can't figure out what the original was...


Thank you