Activities: Bootstrap Elements

Maintained by Picture of Jez HJez H, Picture of Mike GrantMike Grant, Picture of Manoj SolankiManoj Solanki
Bootstrap Elements gives you the ability to add modal and toggles to your courses, helping to improve the layout of courses.
664 sites
73 fans
Current versions available: 3

Bootstrap Elements gives you the ability to add modal and toggles to your courses, helping to improve the layout of courses. It is in essence an improved "label" resource type with an opton allowing you to set content to display as a:

  • Modal box (popup box)
  • Toggle (expandable / drop-down content
  • Enhanced Label (with title + icon)
  • BlockQuote (same as above, blockquote with title / icon)

Font Awesome icons are selected through a searchable UI element smile

This will help teachers add more dynamic, interactive content within courses whilst consuming less space on the page:

Please note: This plugin will only work with themes that are based on Bootstrap and have support for for the Bootstrap elements referenced by this plugin.

Themes known to work with this plugin are:

We will expand this list to include other themes as we confirm their compatibility.

Future Plans:

  • Add color options
  • Look at other elements such as callouts and possibly Tabs / Accordion

If you have any other suggestions for improvement please let us know!


This plugin is part of sets BCU UI, Adaptable UI.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Picture of Jez H
Jez H (Lead maintainer)
Picture of Manoj Solanki
Manoj Solanki: Maintainer
Please login to view contributors details and/or to contact them

Comments RSS


  • Picture of Roger Domínguez Argemí
    Mon, Aug 31, 2015, 7:40 PM
    Hi Mike, Jez,

    Congrats for the plugin! The plugin does not work in the Clean theme although it is built on Bootstrap... It would be very useful! Any planned action to do that? Thanks!
  • Picture of Dan Jeffries
    Fri, Sep 11, 2015, 10:15 PM

    Loving this plugin - it's a huge help.

    One small query. I am trying to use the Label element of the plugin with Activity Completion. I duplicated the label a few times, and it seems that one of the elements has the same name. When trying to choose a label in Activity Completion, it's really hard to distinguish them because they all have a similar name (bootstrapelements7, bootstrapelements8 etc).

    So I guess my questions are:

    1. Can errors occur when duplicating?
    2. What happens if two elements have the same name?
    3. Will it be possible to rename the elements?


  • Picture of Christine Theodoridou
    Fri, Oct 9, 2015, 11:15 PM
    Hello guys!
    The plugin seems great but in my Moodle 2.9 I cannot make it work. I have tested with Bootstrap theme. Does it support this Moodle version?

    Thank you,
  • Picture of Elizabeth Dalton
    Thu, Oct 22, 2015, 1:35 AM
    I have Bootstrap Elements working on Moodle 2.9 with Flexibase (a Bootstrap theme). However, the toggle doesn't work. (Toggle title shows, but cannot expand.)

    Apart from that, I'd appreciate a CSS style hook so I can affect which heading is used by the plugin to display the title. Right now it seems to use an undifferentiated h4 (overridden with a specific font size by Toggle and Blockquote) which is small for my purposes. I realize I can redefine h4 and probably my course developers aren't using it much, but I'd rather have something specific to BE, or the ability to select a heading level within BE.
  • Picture of Elizabeth Dalton
    Thu, Oct 22, 2015, 1:45 AM
    I seem to have figured out my theming question: I can do this:
    .bootstrapelements h4 {
    font-size: 24px;

    I still can't get Toogle working in 2.9 in Flexibase theme, however.
  • Picture of Elizabeth Dalton
    Thu, Oct 22, 2015, 7:35 PM
    Correction: toggle started working in Flexibase. Possibly it was a caching issue.
  • Ricardo Caiado
    Fri, Jan 15, 2016, 11:26 PM

    Does Bootstrap Elements works with Pioneer Theme (

  • Picture of Jez H
    Sat, Jan 16, 2016, 6:18 AM
    Hi Ricardo,

    I dont know, you would have to install and test it. If it does not it should not be hard to get it working assuming Pioneer uses bootstrap and Chris was prepared to help get the two working together.
  • Picture of Brandon Jimenez
    Tue, Jan 19, 2016, 9:48 PM
    Hi, I'm currently running a Moodle 2.9.3+ site and planning to update it to Moodle 3 or 3.1 (sometime in the future), and i would love to have your plugin installed. I do, however, have a question: have you tested in a Moodle 3+ environment?

  • Picture of Robin Leung
    Wed, Feb 10, 2016, 3:42 AM

    I used this plugin for a short while on 2.8 with a customized version of Evolve-D theme (
    And then it stopped working. I'm wondering when will this feature be out, "Auto detect theme compatability and fall back on non supported themes (so multiple themes in the same site can be supported)"?

  • Picture of Elizabeth Dalton
    Thu, Feb 11, 2016, 12:01 AM
    We have it working on a test system on 2.9, but I don't see official support for 2.9 in the release notes. Our hosting vendor needs to see official support to review the plugin for installation on our system. Can the release notes be updated to include support for Moodle 2.9?
  • Picture of Francis Feytout
    Mon, Feb 22, 2016, 9:12 PM
    I'm testing this plugin on a 2.7 and the resource hang out at creation with the the following error : Error output, so disabling automatic redirect. It goes through with the manual continue though.

    And the relevant trace :
    Did you remember to call setType() for 'bootstrapicon'? Defaulting to PARAM_RAW cleaning.

    line 1316 of /lib/formslib.php: call to debugging()
    line 288 of /lib/formslib.php: call to moodleform->detectMissingSetType()
    line 206 of /lib/formslib.php: call to moodleform->_process_submission()
    line 86 of /course/moodleform_mod.php: call to moodleform->moodleform()
    line 254 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
    It looks good, but I'm concerned to push it on my production server with this though.
  • Gareth J Barnard
    Mon, Sep 19, 2016, 8:13 PM

    Sorry to be blunt, but when implementing something, please read the specification: - you've omitted the 'hide' class and hence a Modal prevents links etc. from not working because its not hidden:

    An annoyed, Gareth.
  • Ricardo Caiado
    Wed, Dec 7, 2016, 8:09 PM
    Any upgrade to Moodle 3.2?
Please login to post comments