Skip to content

Moodle Theme


Adding social media links to your Moodle site is something that will make it easier for students and visitors to easily follow, interact and find more information about your organization.

In this post, I will share with you how you can integrate the social media settings functionality that will enable you to add the links from the Moodle admin and then show them in the Moodle theme, in this case, the Boost default theme, but the code and the concept would work with any theme and I chose Boost as it’s the default and the standard one comes with Moodle.

I will add the link settings to Facebook and Twitter, but adding any other social media links would follow the same structure.

We need to do 4 steps to make this happen:

Add Translation Strings for Settings Labels
Add Admin Settings for Adding the Links
Set Up Links Mustache Template Helpers
Show the Links Within the Theme Template File