i want to hide echo maincontent()

i want to hide echo maincontent()

by moodle learner -
Number of replies: 3

moodle 2.7.2

essential theme

i want to hide the maincontent() in front page, i tried but they shows program errror. echo maincontent must be there.

Average of ratings: -
In reply to moodle learner

Re: i want to hide echo maincontent()

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Look at the divs and use display:none - its not exactly efficient in terms of page load speed, but it works.

Alternatively and probably better, actually look at what the different bits of the renderer are doing and override the renderers rather than creating your own maincontent replacement (where there are renderers)

Richard

In reply to Richard Oelmann

Re: i want to hide echo maincontent()

by moodle learner -

Coding error detected, it must be fixed by a programmer: page layout file [dirroot]/theme/essential/layout/frontpage1.php does not contain the main content placeholder, please include "<?php echo $OUTPUT->main_content() ?>" in theme layout file.


the above is the error that i got.