Adding Themes in 1.8

Adding Themes in 1.8

by Christine Taylor -
Number of replies: 15

I just upgraded to Moodle 1.8 and want to know how to add new themes to the theme folder in this version?  I have downloaded some themes from Theme Guru, made changes, and resaved the folders.  Now I'd like to get them onto my Moodle version.  Many thanks!

Average of ratings: -
In reply to Christine Taylor

Re: Adding Themes in 1.8

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
It's exactly the same, just put the theme's folder in your Moodle theme folder.
In reply to Christine Taylor

Re: Adding Themes in 1.8

by Mauno Korpelainen -

And if they are not 1.8 versions you may need to change

$THEME->standardsheets = true;

in theme config.php and add icons adv.gif and req.gif to your theme pix folder.

In reply to Mauno Korpelainen

Re: Adding Themes in 1.8

by Matt Gibson -
Hi Mauno,

Where do adv.gif and req.gif come from?

Matt
In reply to Matt Gibson

Re: Adding Themes in 1.8

by Patrick Malley -
Moodle 1.8 standard pics folder
Average of ratings: Useful (1)
In reply to Patrick Malley

Re: Adding Themes in 1.8

by Matt Gibson -
Cheers!
In reply to Matt Gibson

Re: Adding Themes in 1.8

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I think that if you turn on Admin -> Experimenta -> Smart pix search, the you won't have to copy the icons. Instead, if the icon is missing from your theme, Moodle will automatically look for it in the parent theme, and so on. Then if all else fails, it will look in the standard theme if it has not already done so.

It would be nice to get some more testing of this, so we can move it out of experimental, an in to where it belongs.
In reply to Tim Hunt

Re: Adding Themes in 1.8

by Mauno Korpelainen -

Yes, it works too, smart pix is by default unselected and you only have to select smart pix or copy those images if you have

$THEME->custompix = true;

in theme config.php

Getting those images straight from theme pix folder may be 1 ms faster big grin

In reply to Mauno Korpelainen

Re: Adding Themes in 1.8

by Kim Flintoff -
Interestingly, I got my "pix" images back after turning SmartPix OFF.
In reply to Christine Taylor

Re: Adding Themes in 1.8

by Christine Taylor -
Thanks for the help.  Can someone give me a step-by-step for adding themes to the folder--I still can't find the right spot to do this. . .
In reply to Christine Taylor

Re: Adding Themes in 1.8

by Patrick Malley -
The following can be found at http://docs.moodle.org/en/Themes:

  1. Zip the theme folder using winzip or similar
  2. Upload the .zip file into the theme folder moodle/themes/
  3. Unzip
  4. Choose your new theme from within Moodle admin>Configuration>Themes


You need access to your Moodle file directory to do this.
Attachment Picture_1.png
In reply to Patrick Malley

Re: Adding Themes in 1.8

by Christine Taylor -

Thanks, Patrick.  Can you tell me how I can access the Moodle file directory?  I'm able to find the indexes for specific themes but not the theme folder in general.

In reply to Christine Taylor

Re: Adding Themes in 1.8

by Patrick Malley -
I don't exactly understand what you mean by "I'm able to find the indexes for specific themes ..." Where are these indexes that you speak of - within the Moodle interface?

The Moodle file directory is on your server. It is where your Moodle lives! When you go to the Internet and call up www.yoursite.com/moodle, you are accessing your Moodle file directory. Typically, this directory is located on a server in /yoursite/public_html/moodle/themes - but this is not gauranteed.

I am assuming that you did not install your Moodle installation? Or, if you did, perhaps you used software to install it (like cPanel)?

If you do not have access to your server (through FTP or otherwise), I would recommend speaking with the person who does.

Also, in the future, more information is always better when trying to get help in these forums. Writing what may seem to be too much information can sometimes prevent this type of back and forth due to communication problems. For example, where are you looking if you can't find your Moodle file directory? What steps have you taken already that have proven unsuccessful?

Good luck. smile
In reply to Patrick Malley

Re: Adding Themes in 1.8

by Danalyn Robinson -
Great directions Patrick! This was very helpful. I figured out how to add a theme in seconds based on your direction.

D.
In reply to Danalyn Robinson

Re: Adding Themes in 1.8

by bob short -

I too am having problems.

have put the folders into my themes folder and made sure they have an xml file and screenshot but when i goto admin themes the only ones that show are the default themes. have also done everything that is written in this thread still no go. anybody ably to shed some light on what is wrong.