Editing the footer()

Editing the footer()

by Rochelle Johnson -
Number of replies: 1

I am trying to amend the footer() function/class. I have searched through the files and don't seem to be able to locate the function/class

could someone point me in the right direction to find the correct file and therefore the function/class to edit.



Average of ratings: -
In reply to Rochelle Johnson

Re: Editing the footer()

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The page footer is output here: https://github.com/moodle/moodle/blob/master/lib/outputrenderers.php#L1167

But you don't want to be messing around with it there - if you need to override the functionality, you probably want to be writing a renderer override in your theme and using that to change the functionality of the footer output.

See https://docs.moodle.org/dev/Overriding_a_renderer for more details.