Theme development

Theme development

av Nilesh Pathade -
Antall svar: 2

Hi  All,

Hope all is doing well and safe,


Please give me suggest and example for developing custom theme for Moodle 3.9 version.

I have cloned Moove theme and want to change frontpage layouts of courses. Please suggest.


Thanks

Gjennomsnittlig vurdering: -
Som svar til Nilesh Pathade

Re: Theme development

av Richard Oelmann -
Bilde av Core developers Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av Testers
If you have already cloned your chosen theme (Moove) then you've made a good start already.
But you probably need to give us a bit more detail about what you are trying to achieve - I presume by 'frontpage layouts of courses' you mean the course page itself? You also need in that case to bear in mind that the course page appearance can be altered drastically by the choice of course format used (eg 'grid' or 'tiles' look ver different from 'weeks' or 'collapsed topics').
But for the theme itself, the layout is generally created in the relevant layout file (see the theme config.php to determine which one), elements of which may reference renderers (such as the custommenu) and then gets passed to a template file to actually construct the hmtl. And of course that all gets styled by the scss.

So it all starts with what do you want to change - simple css (in the scss files), basic html (in the templates), or more complex logic in the layout files.
I'm sure if you can come back with some specific questions about what exactly you want to change and how, there are people on the forum who can help you do what you need to do.

Richard
Som svar til Richard Oelmann

Re: Theme development

av Nilesh Pathade -

Thanks Richard for reply. 

I want achieved change site home page which show me courses list that I want to show in  gird and list format.