Loading...
 
Skip to main content

Themes


How do I force the use of a theme?

Hi,

I've now created a theme that matches the rest of my site (see http://rltvolunteers.org/wikiQuestion). How do I force all users to use that theme and prevent them from being able to specify another theme?

I set a theme to use under Administration > General, but that seems to be overridable by the end user.

I've enabled the Theme Control feature in Administration and if I click Control by Section, I see that I can specify a theme to be used for each section (eg Wiki). Do I just set all of these to the theme I want? I guess I was hoping there would be an "All" choice in this list of section. I did most of them, however if I log onto as a user, I can still change the theme. Also, if I go to a page such as "Last Changes" from the Wiki menu, it uses the user-specified theme not the one I want to force everyone to use.

So how do I:

  • Force the use of a theme across all pages and for all users
  • Prevent a user from specifying a theme and overriding the custom theme I created?


Thanks.
David.

> Hi,
>
> I've now created a theme that matches the rest of my site (see http://rltvolunteers.org/wikiQuestion). How do I force all users to use that theme and prevent them from being able to specify another theme?

If "Reg. users can change theme" (on Admin / Login) is not activated, then users shouldn't be able change the theme. (I'm not sure because I haven't tested this at my Tikis, where I want users to be able to change the theme.) If for any reason that doesn't work, simply renaming all the .css files in the styles/ directory (to .txt) or deleting them, except for the one you want to use, will eliminate them from the dropdown list on your users' prefs page. That list is generated from the CSS files found in the styles directory.

> I set a theme to use under Administration > General, but that seems to be overridable by the end user.
>
> I've enabled the Theme Control feature in Administration and if I click Control by Section, I see that I can specify a theme to be used for each section (eg Wiki). Do I just set all of these to the theme I want? I guess I was hoping there would be an "All" choice in this list of section. I did most of them, however if I log onto as a user, I can still change the theme.

To have the same theme used for all sections, there's no need to enable Theme Control. The theme specified for the site on the Admin General page is the theme used for all sections unless Theme Control is activated and specifies some other themes.

The user can set themes because this is the default behavior that must be overridden on the Admin Login page as described above.

-- Gary - themes.tw.oQuestion

> If "Reg. users can change theme" (on Admin / Login) is not activated, then users shouldn't be able change the theme. (I'm not sure because I haven't tested this at my Tikis, where I want users to be able to change the theme.) If for any reason that doesn't work, simply renaming all the .css files in the styles/ directory (to .txt) or deleting them, except for the one you want to use, will eliminate them from the dropdown list on your users' prefs page. That list is generated from the CSS files found in the styles directory.

Thank you Gary! That was the piece of puzzle that I was missing. Once I turned that off, it worked as I expected.

What do you think of the idea of moving this setting to General Settings page, right under the theme selection? Theme control seems to be in three or more places which makes it harder to configure it just right. Just my opinion though.

David.