Let’s clarify what Font Awesome is, and why you might use it in Moodle.
(Link to Part 1 of this series)
In this series of posts, we are exploring how you can use Font Awesome in your Moodle courses.
Font Awesome gives you scalable vector icons that can instantly be customised – size, colour, rotation, drop shadow, and anything that can be done with the power of CSS (Cascading Style Sheets).
We use Font Awesome for the graphics within each section (Topic/Week) heading area in many of our courses – often with a simple layering effect e.g. colour box, with smaller icon inside (more about this later).
That’s because Font Awesome is … errrr … a Font ! Think of it more like Wingdings or some other font you may have used before to get little symbols in your text.
Note that some Moodle Themes use Font Awesome 4, but some may support Font Awesome 5.
You need to check that the Theme you are using supports Font Awesome 4. If it doesn’t then what we are showing you here will not work (although there is a way for Moodle administrators to add support in the background)..
Currently the Moodle Mobile App supports Font Awesome 4, so that is what we will use in this course (for now). When the time comes for you to use Font Awesome 5 don’t worry – 99% of what you learn using Font Awesome 4 will still be relevant 🙂
Consistency is a key factor here
As teachers we’ve all had the experience of trying to locate a set of icons/images that we can use within our courses (for free usually). And while you might be able to locate a good icon set with a couple of dozen icons … Font Awesome gives you thousands – with a clear consistent design !
So how exactly does it work?
You basically enter a small string of text in HTML view that inserts an icon into Moodle. There are thousands of icons to choose from. Easiest way to try? Create a new Label, and in the editor HTML view, try adding this code and save to see what you get:
<i class="fa fa-apple"
size="3x"></i> <i class="fa fa-facebook"
size="3x"></i> <i class="fa fa-google"
Those of you with some basic HTML knowledge will recognise the <i> tag, which means italic. In reality most web designers use <em> (for emphasis) to display italic text, so it’s OK to use this. Or use a span if you want to be more correct:
<span class="fa fa-apple"
All good ?
OK, so your task before my next post is to see if you can change the code above to display icons for Twitter, YouTube, and Skype instead …
See the full collection of articles on using Font Awesome with Moodle within this dedicated (open and free) Moodle course on our ElearningWorld Academy.
Latest posts by Stuart Mealor (see all)
- Moodle 3.6 new feature – record assignment feedback – 26th March 2019
- Hot Potatoes and Moodle – 23rd March 2019
- Featured writer – Catherine Duncan – 22nd March 2019