Hiding last modified date in pages

moodleBy default, the last modified date is displayed at the bottom of Page resources.  This article describes the procedure for hiding this info.


Start by browsing your web host files, and opening the following file for editing.

  • /mod/page/view.php

Scroll to near the bottom, and comment out 2 lines as follows...

//$strlastmodified = get_string("lastmodified");
//echo "<div class=\"modified\">$strlastmodified: ".userdate($page->timemodified)."</div>";


If you now refresh the front-end of Moodle, you should see the Last modified information disappear.


Thanks for visiting,