1. Home
  2. Docs
  3. Molab – Moodle Theme Documentation
  4. FAQs
  5. How to change the font?

How to change the font?

Step 01: Go to https://fonts.google.com/ and select you font.

  • Choose a font from the Google Fonts library and click on the “+” symbol to select it.
  • Copy the provided @import code, which should look something like this:
  • @import url(‘https://fonts.googleapis.com/css2?family=Font+Name&display=swap’);

Step: 02: Go to site File manager-> theme/molab/style/style.css and replace the @import code at the top of your CSS file with existing @import link.

Step: 03:

  • Go to Site administration > Development > Purge all caches.
  • Click on the “Purge all caches” button to clear the cache.
  • You should see a confirmation message that the cache has been purged successfully.

After that, you will notice that the font on your site has changed.

Was this article helpful to you? Yes No

How can we help?