Mary, you are a lady and a scholar! I shall give this a try and edit the .css file first thing Monday morning.
I made the changes to the .css file but unfortunately it did not work.
The side columns did change size but the content of the colums became distorted and unreadable as it was shifted off the section
The centre column also seemed to stay very narrow.
For now, I've loaded into 2.4.1, our customised 2.3.1 Afterburner theme which seems to work.
I know there have been some code changes to the themes to support Moodle's new code base and hope I can re-integrate the latest theme with some changes to meet our spec.
Thank you again for your help and support.
That's OK to add your old theme back, it would be better if you renamed your theme to another name then it would be safe to leave it be when you upgrade next time.
I am planning an reworking Afterburner to add some extra setting so that Admins can set their own side block widths. In fact MDL-35217 has been set up to do this.
That would be great Mary as the general Afterburner theme fits well with our branding - give or take a tweak or two!
How easy is it to rename a theme? I understand that all references to the theme's name have to be replaced with the new name and this involves digging into most of the theme code.
The main places where you HAVE to rename are as follows...
FIRST - which I nearly forgot!!!
The afterburner folder name itself...
Where you see this afterburner change it to your theme's name, be sure to use lowercase letters.
$THEME->name = 'afterburner';
$THEME->csspostprocess = 'afterburner_process_css';
Search and replace all instances (17) of afterburner with your theme's name
Last but not the least:
First you need to rename this file to read the name of your theme like so...
change the following...
$string['configtitle'] = 'Afterburner Custom Settings';
$string['pluginname'] = 'Afterburner';
You can change the names on the CSS stylesheets but this is not a ptoblem. But if you do change these be sure to change afterburner/config.php too to reflect those changes you make.
See afterburner/style for all the CSS files
And then change these to correspond to your changes
$THEME->sheets = array(
'afterburner_pagelayout', /** Must come first: page layout **/
'afterburner_styles', /** Must come second: default styles **/
Hi Mary... I think when I first re-themed Afterburner back in 2.1 the instructions on moodle.org were much simpler for cloning a theme - or maybe I missed the page with all the changes you have written up here. I found a bit at the bottom of the this page http://docs.moodle.org/dev/Cloning_a_theme that looks like the instructions I read on moodle.org at the time I did the first re-theming. Here's the section copied from that page:
Recipe for the Impatient
For those who want a minimal set of instructions to semi-blindly blast through this:
1. Copy [moodleroot]/theme/boxxie to [moodleroot]/theme/foxxie
2. Rename [moodleroot]/theme/foxxie/lang/en/theme_boxxie.php to [moodleroot]/theme/foxxie/lang/en/theme_foxxie.php
3. In [moodleroot]/theme/foxxie/lang/en/theme_foxxie.php, replace any instances of "boxxie" with "foxxie", likewise for "Boxxie" and "Foxxie".
4. Edit [moodleroot]/theme/foxxie/config.php to replace instance(s) of "boxxie" with "foxxie".
You can see this is considerably simpler. It seems though, that the theme I developed using this more simplistic approach is working all the way up to Moodle 2.4. Should I be worried?
If you are happy with your theme, you dont need to worry.
Here's an updated version of my Tutorial, which is based on the Afterburner theme.
Thanks Mary! One more thing if you don't mind... it says in your tutorial to update all the theme names in settings.php, renderers.php and lib.php. I have not done that in my theme but it seems to be working alright. Is it necessary to change these files? Is there a reason for changing them that will make a difference to how the theme performs?
It all depends on which version of Afterburner you cloned, and also if your theme is inheriting the Afterburner theme. In other words is Afterburner your custom theme's parent theme?
Afterburner was added to Moodle core in Moodle 2.1.
In Moodle 2.2 some custom settings were added to Afterburner. So if this is the version you copied, then you should be renaming the settings.php, and lib.php otherwise you will not be able to use the custom settings for your theme.
In Moodle 2.3 the layout was changed to a fluid layout and specific functions added to enable the swapping of the side blocks for RTL (Right to Left) languages. So layout/default.php changed as did a lot of the CSS particularly the pagelayout.css
All these changes will make it necessary for you to rename these files if you choose to clone the 2.5 version. It's quite complex, but still achievable if you take care with the renaming .
Hope this answers your questions?