Canvas Page Blocks
- Choose a “block”.
- Enter your content.
- Look at the preview.
- Copy the HTML code.
- Paste it into the “HTML Editor” in Canvas.
Step 1: Choose a block
Step 2: Enter your content
ExampleOne on each line:
--key: value;, with colours as hex codes such as #335c67. They start with the same colours as Custom on Moodle Page Blocks, and lines copied from there work here too. This browser saves them for your next visit. Step 3: Look at the preview
The shapes on the left stand for Canvas's menus. Canvas sets its columns by the width of the whole window, but the menus take part of that width, so the preview shows them too. On a phone, Canvas folds the menus into a bar at the top. If a student closes the course menu, the page gets 192 pixels more. The icons are stand-ins, because Canvas's icons load only in Canvas. A dashed box marks an icon name that the tool does not know, so check that icon in Canvas.Scroll inside the preview to see the rest of the block.
Step 4: Copy the HTML
Step 5: Paste it into Canvas
- Open the Canvas page, and select Edit.
- Select the HTML Editor button
</>at the bottom right of the editor. - Place the cursor where the block should go.
- Paste the HTML code with Cmd+V on a Mac or Ctrl+V on Windows.
- Select the
</>button again to see the block as students will. - Select Save.
</> is near the right end.Canvas shows the icons and some styles only after you save the page.