add custom font to Adaptable theme

add custom font to Adaptable theme

by Ali Ahmadian -
Number of replies: 3

Hi 

I installed moodle 4 and theme Adaptable.

I want to change default font tp "Yekan".I created a folder named " fonts" inside Adaptable theme folder and copied fonts in that folder.

Added following code in css section in Adaptable theme setting and purged all caches ,but nothing happens and new font doesn't applied to site.

@font-face {

     font-family: 'Yekan';

     src: url('../fonts/Yekan.eot');

     src: url('../fonts/Yekan.eot') format('embedded-opentype'),

          url('../fonts/Yekan.woff') format('woff'),

          url('../fonts/Yekan.woff2') format('woff2'),

          url('../fonts/Yekan.ttf') format('truetype'),

          url('../fonts/Yekan.svg') format('svg');

     font-weight: normal;

     font-style: normal;

   }

.dir-rtl.lang-fa {

font-family: Yekan;

}


What is the problem.

Thanks

Average of ratings: -
In reply to Ali Ahmadian

Re: add custom font to Adaptable theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
In reply to Gareth J Barnard

Re: add custom font to Adaptable theme

by Ali Ahmadian -
Thanks for your reply,
I followed that way ,but font is still the default font.
In reply to Ali Ahmadian

Re: add custom font to Adaptable theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
The link I posted is the correct solution, so I don't know what you've done wrong.