Force whole theme to use frontpage header?

Force whole theme to use frontpage header?

av David Gladwin -
Antall svar: 3

Hi there, this is my first post on these forums and hopefully won't be my last. I've been designing a new theme for our School's Moodle. Basically what I have decided is that I would like to use the larger "FrontPage" header (the full height one with the full size logo etc) everywhere on Moodle instead of the smaller half height one. Would this simply be a case of changing a couple of values in  the PHP files or would this be a lot of work?

Thanks in advance

Dave Gladwin

Gjennomsnittlig vurdering: -
Som svar til David Gladwin

Re: Force whole theme to use frontpage header?

av David Gladwin -
Sorted now so nevermind smile
Som svar til David Gladwin

Re: Force whole theme to use frontpage header?

av Joseph Rézeau -
Bilde av Core developers Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av Testers Bilde av Translators
Hi David,
When one posts a question to these forums and then finds the solution by oneself, it is good practise to say exactly what that solution was. This can help participants who had the same problem/query.wink
Joseph
Som svar til Joseph Rézeau

Re: Force whole theme to use frontpage header?

av David Gladwin -
Hi Joseph. I basically found the solution in the header.html file that I am using with the theme. It's a bit of a bodge (But aren't the bodges always the best?!) There are two sections which start with "This header will be displayed on the home page only" or something along those lines with the relevent DIV IDs and classes. If you follow this down you will see something like "This header will be displayed on every other page" which contains the IDs and classes for the "smaller" versions of the top header (followed further down by breadcrumbs etc). I simply copied the lot from the home page bit relating to the images that are used to form the header and pasted it into the "every other page" bit, if that makes sense?
Just broken up for xmas holidays today but I can post the code when I get back to School if anyone is still unsure of what I mean.

Regards,
David Gladwin