Moodle: Print View

Moodle does not yet have a print view button so that page content can be printed without additiona unnecessary web page content.
The following removes some unnecessary webpage content (but NOT all !) so that pages can be printed.


Add the following line:

<link rel="stylesheet" type="text/css" media="print" href="<?php echo $CFG->httpswwwroot ?>/theme/standard/print.css" />

Then create and save a new file:


#header, #footer, .navbar {
display: none;

/* fix for printing long tables in Firefox */
table, td {
height: 100%;

Alternatively, content can be manually copied from the web page and pasted into a wordprocessor such as MS Word and printed from there. The page format in MS Word is often wastefully formatted and difficult to edit.

Found at:

No comments:

This post contains some responses to questions that I have been asked by various people over the last few years. In most cases, I have also posted the information on relevant online community forums such as I hope that you find this useful. Stephen Digby