Course themes not available

Course themes not available

by Carl Kennard -
Number of replies: 4

Hi,

we're using moodle 2.2.4 at the moment and we've installed some cusom themes of our own. We can select these for the main site theme from Settings > Site Administration > Appearance> Themes > Theme selector but when we try to allocate them for individual courses using Settings > Edit settings the names of the themes are not visible in the drop-down menu next to Force themes.

We've set our moodle up to allow course themes in the theme settings and all of the theme language files have been re-named.

Average of ratings: -
In reply to Carl Kennard

Re: Course themes not available

by Mary Evans -

When you say Custom themes, are they core themes you have changed? Or are they some you've had made? Either way you have to install theme first.  Installing a theme in Moodle 2.2.4 is pretty easy, but if there is a problem with the theme Moodle will not let you continue with the install until you have fixed the problem.

If you have installed them and Moodle allowed you to update your database, so that the install logs can be updated, then the only things left to check is...

  1. Make sure you have enabled Allow course themes in Theme settings
  2. Purge Theme caches in Theme selector page or Purge all caches in Site Administration > Development > Purge all caches

If you have done all this then I am not sure what the problem is.

Mary

In reply to Mary Evans

Re: Course themes not available

by Carl Kennard -

I created a copy of the base theme, renamed it, put the new version in the theme folder then changed it. We were asked to update when they were first used. We've also got allow course themes enabled and we've purged the cache as suggested but it's still not working.

In reply to Carl Kennard

Re: Course themes not available

by Mary Evans -

That is because you have left in the "hide this theme from theme selector" bit of code in your new theme's config.php. It's right at the bottom of the config.php. You can delet it as it is not required.

// We don't want the base theme to be shown on the theme selection screen, by setting
// this to true it will only be shown if theme designer mode is switched on.
$THEME->hidefromselector = true;

Average of ratings:Useful (3)