Themes ::: theme_foundation
Maintained by Gareth J BarnardGareth J Barnard
This is a Bootstrap theme that aims to be minimalistic and modern in look.
Latest release:
917 sites
38 fans
Current versions available: 11


This is a Bootstrap version 4 theme that aims to be different and yet at the same time have some traditions of the past.  It does not extend the Boost theme but rather 'pull' the files it needs from it because that is where they are currently stored.  No navigation drawer or docking has been implemented.  However, you can collapse and expand blocks and put them in a 'drawer' region.

There is added support for 'partial' templates which can then be imported into a main template with the syntax '> partial/mypartial'.  Currently the theme does not work when placed within a $CFG->themedir folder.


  • Bootstrap V4 CSS with core Moodle CSS..
  • Child theme capable - in 'beta'.
  • Custom SCSS.
  • Custom Swatches from and licensed under the MIT License (MIT).
  • Partial template support.
  • Theme modules - in 'beta', see the swatch_modules.php file.

Moodle 3.5 version discontinued

Because of a recently found issue with User Tours not working, which is fixed in the Moodle 3.6 version ( but not the 3.5, I have decided to stop development on the Moodle 3.5 version of the theme.  The fix has implications for lots of other functionality.  This is down to  being required.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6


Gareth J Barnard
Gareth J Barnard (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Gareth J Barnard
    Sun, May 2, 2021, 12:24 AM
    Dear Christophe,

    ??? I already have in version for Moodle 3.10, released on 15th March 2021! Current version is, released on the 28th April 2021.

  • Mitja Decman
    Thu, Sep 30, 2021, 6:09 PM
    Hi, we have a Foundation theme installed on our Moodle 3.11.1. We have all courses set to grid layout. We use two columns: right and central. Would like to add a block above the Summary section in our courses. We noticed that the regions might be Poster, Marketing and Drawer, but we do not know, where they are or how to enable them. We could not found any documentation about this, except some code on github.

    Thanks for help.

  • Gareth J Barnard
    Thu, Sep 30, 2021, 10:37 PM
    Dear Mitja,

    Foundation 'open source' and provided under the GPLv3 license 'AS IS'. Therefore with an understanding PHP and Moodle Themes, then its possible to understand the code and solve your specific problem. Where I've felt I've needed to, I have placed comments in the code that explain things.

    Kind regards,

  • Mitja Decman
    Fri, Oct 1, 2021, 7:09 PM
    Dear Gareth, thank you for your reply.
  • Mevi Pron
    Thu, Aug 25, 2022, 6:56 AM
    Dear Gareth, How can I make the displayed courses not appear vertically but horizontally?
  • Gareth J Barnard
    Thu, Aug 25, 2022, 9:57 PM
    Dear Mevi,

    Its complicated, you can modify the code yourself or if you want me to do so or describe in detail how to then I'll need paying for my time / skills please.

    Kind regards,

  • Rok P
    Thu, Aug 3, 2023, 5:33 PM
    I downloaded the latest version for Moodle 4.1 (401.1.1 - Updated on 15.6.2023), but the file I get is named "".
    If I open version.php inside plugin it says
    $plugin->release = '401.1.1';
    $plugin->version = 2022112602;
    $plugin->requires = 2022112800.00; // 4.1 (Build: 20221128).

    So confusing. Can you please check. Something does not seem right.

    Kind Regards,
  • Gareth J Barnard
    Thu, Aug 3, 2023, 8:27 PM
    Dear Rok,

    Please read the installation instructions in the contained file.

    Kind regards,

  • Rok P
    Fri, Aug 4, 2023, 3:01 AM

    I think the explanation is here:
    "the date part YYYYMMDD should be frozen at the branch forking date and the XX is used for incrementing the value on the given stable branch"
  • Gareth J Barnard
    Fri, Aug 4, 2023, 4:54 AM
    Dear Rok,

    I'm confused as I thought you couldn't work out how to install the theme? As the version.php file is correct.

    Kind regards,

  • Rok P
    Thu, Sep 21, 2023, 4:32 AM

    The theme works. The versioning convention contains Moodle initial release date, which was confusing. All is good.

    Now I have an issue with (at least) one of the letters in our alphabet. The word "username" in our language contains letter 'š'. On login page, there is a placeholder for username, but instead of actual letter ('š') it is displayed it as its unicode representation: '\u0161'. If I swtich to defaut theme "Boost", the letter in placeholder is displayed correctly ('š'). I have no idea why this happens. Also, I have noticed that this happens only on login page. Haven't tested the password placeholder as it does not contain any non-ascii letters.

    Any help would be much appreciated.

    Kind Regards,
  • Gareth J Barnard
    Thu, Sep 21, 2023, 5:15 AM
    Dear Rok,

    Please post more details, like versions of the theme and Moodle, along with a screen shot and the name of the your language so that I can attempt a replication on And, as stated previously, the versioning is correct.

  • Rok P
    Mon, Sep 25, 2023, 7:01 PM
    Anyone interested in the unicode issue, Gareth confirmed its a bug and prepared a fix:
    Fix will be included in next 4.1 release.
    BR, Rok
  • social boh
    Mon, Dec 18, 2023, 7:21 PM
    Moodle 4.3.1 and Foundation theme 403.1.2. Error is: class constructors must be invoked with 'new'
  • Gareth J Barnard
    Mon, Dec 18, 2023, 7:51 PM
    Dear Social Boh,

    No idea bar perhaps it could be a JS error. However, I've not spotted it. Please post full details on the themes forum -> - screenshots essential.

1 2 3
Please login to post comments