Question Regarding Custom Theme

Question Regarding Custom Theme

by Gerard Libby -
Number of replies: 5
I would like to make a custom theme for my moodle site that makes some rather large changes to the layout of the site. The main points are that I want to display the current users profile picture in the upper left of the front page, which will be linked to their profile. In addition I want to change the how the bread-crumb menu at the top bar works. I'd prefer it to link to the front page (instead of the course list) at the lowest level so that it would be Home->Course (if you are in one) ->Activity (If you are in one).


My question is how to go about this. I've been looking through styles_layout.css in the standard theme folder and its making me think that the changes I want to do dont really constitute as a new "theme". I see where the file styles how the menu will be aligned for instance, but I dont know where the menu code that it calls is contained. Same with the profile picture, I dont really understand which part of the code says "This menu is on the left, this image is on top, etc..."

Are making these kinds of changes possible as a theme? I'm wondering because the webhost Im using currently (keytoschool) allows custom user themes but not editing of the core files, so its my understanding that if its not something CSS/theme related I wont be able to edit it.

Thanks all!
Average of ratings: -
In reply to Gerard Libby

Re: Question Regarding Custom Theme

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You may do better posting in the themes forum.

For the changes you want to make, you should look at header.html, instead of styles_???.css. Some of them will be possible in 1.9, but perhaps not all.

The theme system is changing in Moodle 2.0, so everything you want to so should be possible there.


In reply to Gerard Libby

Re: Question Regarding Custom Theme

by Alex Smith -

Good morning Gerard.

Why not try:

http://docs.moodle.org/en/Themes_FAQ

http://docs.moodle.org/en/Creating_a_custom_theme

http://docs.moodle.org/en/Make_your_own_theme

http://www.themeswiki.org/Customizing_Moodle

Also if you have a browse round the Themes Forum (http://moodle.org/mod/forum/view.php?id=46) as it is likely that someone will have experienced and solved a similar problem to you.

Good luck,

Alex

In reply to Alex Smith

Re: Question Regarding Custom Theme

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Just moving this discussion to the themes forum, as suggested...
In reply to Gerard Libby

Re: Question Regarding Custom Theme

by Navin Dutta -
Hi Gerard,

Yes I think this is possible. You can work this out writing custom code and including it in your theme, without customizing moodle core code.

So far as I know, K2S has limited calling php functions so you will have to ask them what all php functions do they support in themes, i.e. if they allow custom code in the themes. If they allow it, it should be possible with some coding.

The first requirement can be met using the themes at www.thematoweb.com. You can also customize it to your branding needs. For second requirement, coding will need to be done!

Cheers!! Good luck!!

--
Nave