Add a Custom Block

Created On September 04, 2023
| Last Updated On September 04, 2023
38/ 47

Blocks are items which may be added to the left or right sidebar of any page in Moodle. In this example, we’ll add a block with a list of student resources. 

 

This is what we’re going to make.

Part 1

ADD THE BLOCK

 
  1. Find the "Add a Block" menu (usually at the bottom of the left sidebar on your course).
  2. Select HTML from the dropdown.
    review text for instructions
Part 2

ADD THE CONTENT

 
  1. For our example, we’ll leave the "HTML block title" empty.
  2. Add your content to the "Content" text area. Anything you add in this text area – images, text, links, etc. – will display in your block in the sidebar. To make the Resource list in the example:
    • Click the code () icon to access the html editor (you may have to click the toolbar toggle in the upper left to see the html editor icon).
    • In the textbox that opens, copy and paste the following HTML code:

 
Resources

For tech support:
Contact the Moodle Hotline

503.838.9300 | moodle@wou.edu

Academic Support
Technology Services
Health
Part 3

SET THE DISPLAY SETTINGS

 
  1. In the "Where this block appears" section, choose where you want the block to display. For the Resources block in the example, I chose Any page.
    Both Any page and Any course page will make the block appear on every page (main course page, assignments, quizzes, etc.).
    Any type of course main page will make the block appear only on your main Moodle page.
  2. In the "Region" field, choose Left or Right. I chose left to have the block be in the left sidebar.
  3. The "Weight" field determines the order of blocks.
    A lower number means the block will be higher on the page (above other blocks).
    A higher number means the block will be lower on the page (below other blocks).
  4. In the "On this page" section, you can change the block display settings on a per-page basis. I’m just going to leave it as is.

5. Click Save changes.

38/ 47
arrow_right_alt Go back all guides