Themes in Habari

The default themes in Habari are placed in system/themes/. To make any customizations to a theme, it is often better to create a duplicate copy in user/themes/, and to work from there.

To be able to distinguish between the two versions of a theme in Habari’s theme selector, you need to modify the tag in theme.xml, e.g. with the following changes to themes/k2/theme.xml:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

*** system/themes/k2/theme.xml 2010-06-21 22:15:10.587118909 +0800
--- user/themes/k2/theme.xml 2010-06-21 23:06:11.018366092 +0800
***************
*** 1,6 ****
<?xml version="1.0" encoding="utf-8" ?>
<pluggable type="theme">
! <name>K2</name>
<license url="http://www.apache.org/licenses/LICENSE-2.0.html">Apache Software License 2.0</license>

<author url="http://getk2.com/">K2 Team</author>
--- 1,6 ----
<?xml version="1.0" encoding="utf-8" ?>
<pluggable type="theme">
! <name>K2_custom</name>
<license url="http://www.apache.org/licenses/LICENSE-2.0.html">Apache Software License 2.0</license>

<author url="http://getk2.com/">K2 Team</author>