Topics

User Functions

Events

There are no upcoming events

What's New

Stories last 2 weeks

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Thursday, April 17 2014 @ 08:15 PM EDT

How do I change the default theme?

The default theme that Geeklog uses for anonymous and for new users is set in config.php:

$_CONF['theme'] = 'XSilver';

The name of the theme is the name of the theme's directory below Geeklog's layout directory. Please note that this name is case-sensitive on case-sensitive file systems (e.g. most variants of Unix / Linux).

Users can change their preferred theme in their preferences, where there is a drop down menu of all the currently available themes. Again, this simply lists all the directories below the layout directory, so adding or removing themes from this list is done by adding or removing the theme directories.

If you don't want your users to be able to change the theme, you can either remove all the unwanted themes or you can disable the option to change the theme by setting

$_CONF['allow_user_themes'] = 0;

in your config.php.

If Geeklog can't find a theme, it will revert to the default theme, so it's safe to remove themes at any time, as long as the directory for the default theme exists.

Once a user changes his/her default theme, Geeklog will also set a cookie with that theme, so that they still see the site with their preferred theme, even when they're not logged in.

FAQ Manager » Usage » How do I change the default theme?