dany2010 Posted January 16, 2013 Posted January 16, 2013 Hi, Having a bit of a nightmare here trying to create a moodle 2 theme. Our current moodle 1.9 was created by a company but its really simple to understand. trying to re-create this in moodle 2 is just not mooving at all. Has anyone else here been through this? What guides/books/videos did you use? This is a tad of code from our 1.9 theme, how easy is this compared to moodle 2. I cant see why they changed it for, it doesnt look any different. * {font-family: tahoma;} body { background-color: #fff; margin: 0; } a:link, a:visited { color: #666; } #header-home { height: 100%; margin: 2px auto 0; width: 1024px; } #site-title { background: url("http://www.edugeek.net/images/site_title.png") no-repeat; height: 159px; position: absolute; top: 50px; width: 751px; } #header-wrap { height: 262px; background: url("http://www.edugeek.net/images/header_tile.png") repeat-x #56A5C4; } #page { width: 1100px; margin: 0 auto; background: url("http://www.edugeek.net/images/content_slice.png") repeat-y -5px 0; } #content { margin: 30px 0 0 46px; width: 1012px; } #right-column { width: 219px !important; } #left-column { width: 216px !important;
penfold_99 Posted January 16, 2013 Posted January 16, 2013 There is a massive difference between 1.9 themes and 2.0 but once you get your head round how 2.0 themes are constructed is it straight forward (there are still the odd quirks buried in there). I would have a look at how the standard theme is constructed and copy and rename the folder and tweak the css from there. chrome is very helpful in testing css changes.
wiseoldowl Posted January 17, 2013 Posted January 17, 2013 If you use something like Chrome and you're inspecting the Standard theme , you'll see different id tags and classes being used than some of the ones you've listed in your CSS snippett. For example, #content is now #page-content, #right-column is now #side-post and so on. In the theme config file for your new theme you can call the base theme and the standard theme so that you need to do is create your new CSS file and add your modifications to that. You can also add new layout files for your pages and so on but be careful, the theme engine is not consistent over its use of layout pages especially when it comes to admin and report pages. Themes - MoodleDocs is a good start. Hope that helps.
nyiss Posted January 30, 2013 Posted January 30, 2013 Hi, Having a bit of a nightmare here trying to create a moodle 2 theme. Just wondering how you got on with this, any progress? I am using 1.9 on our website here and the theme I made was a pain in the rear the first time round I don't know if i'm ready for the headache of changing it to 2.0 if its more effort than its worth.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now