Loading...
 
Skip to main content

History: Three Ways to Make a New Theme

Preview of version: 11

File arrangements

First, establish the basic file arrangement of your new theme. (See also Theme Options ).

First steps

  • Pick a name for the theme. Check the themes directory to make sure there's not an existing theme (i.e., themes/NewThemeName/css/NewThemeName.css file) with the same name.
  • There is no authoritative register of Tiki theme names but, if you intend to share your theme, it would be good to check at themes.tiki.org and in the standard Tiki download package to make sure no theme already exists with the same name.

CSS file

There are a couple of ways to add a new theme to a Tiki site.

  1. Create or locate a new CSS file that is a variant of a bootstrap.css file. For example, this can be produced at http://getbootstrap.com/customization. Then select "Custom theme by specifying URL" in the "Theme" selector of the Look and Feel admin page. Enter the URL of that file in the "Custom theme URL" field, or
  • Create a new CSS file with the theme name you chose and place it (using a file transfer application, etc.) in the themes directory. As of Tiki 14, the themes directory contains a sub-directory (folder) for each theme, which in turn contains at least a css directory (like themes/NewThemeName/css/newtheme.css). This is probably the best choice especially if the theme has images, icons or other components. (See CSS Overview for more details.)

Template (.tpl) files

  • If at all possible, you should try to use the default template (.tpl) files for your new theme, since having custom files makes it harder to update your theme when the default files are upgraded. But if your new theme does use its own variants of the default templates, these must be placed in a sub-directory in the new theme's directory (like themes/NewThemeName/templates/).
  • Copy any files that you want to modify from the templates directory or from an existing theme's templates directory to your theme's templates directory.


Once its CSS file is in place, your new theme has been added to your site. If you go to the Look and Feel admin page or User Preferences and check the drop-down menu for Theme, you'll find your theme listed.

See next: CSS Overview and Template Overview.

Allow users to set the theme

On Admin > Look and Feel (Theme tab) you can activate "Users can change theme"__.

Once activated users can change their theme in their Preferences page under My Tiki menu.

Under Modules you can also activate the switch_theme module which makes it very easy for any user to change themes.

Using multiple themes on your Tiki site

http://www.doc.tikiwiki.org/tiki-index.php?page=Theme+Control at doc.tikiwiki.or describes how to assign themes to

  • A Tiki category
  • A Tiki section
  • An individual Tiki object (i.e., an individual wiki page, blog, gallery, etc.)


If you enable Theme Control, you will see a link to Theme Control in the Admin section of the application menu.

User groups can also be assigned a specific theme. Check doc.tikiwiki.org for details.

(from http://doc.tikiwiki.org/tiki-index.php?page=Styles and Themes)

History

Advanced
Information Version
Mon 13 of Feb, 2023 08:37 GMT-0000 Gary Cunningham-Lee Replaced class card-default with card-primary and removed unnecessary HTML plugin. 18
Mon 13 of Feb, 2023 08:34 GMT-0000 Gary Cunningham-Lee Updated panel class to card class; replaced Less link with SCSS link. 17
Tue 26 of Jan, 2016 08:45 GMT-0000 Gary Cunningham-Lee Added tags. 16
Tue 26 of Jan, 2016 07:48 GMT-0000 Gary Cunningham-Lee Updated for Bootstrap methods 15
Mon 20 of Apr, 2015 14:30 GMT-0000 Gary Cunningham-Lee 14
Mon 20 of Apr, 2015 10:03 GMT-0000 Gary Cunningham-Lee Corrected Bootstrap customize URL. 13
Fri 03 of Apr, 2015 14:35 GMT-0000 Gary Cunningham-Lee More details added. 12
Fri 03 of Apr, 2015 14:29 GMT-0000 Gary Cunningham-Lee Updated with Tiki 14 information. 11
Sat 23 of May, 2009 05:03 GMT-0000 Gary Cunningham-Lee 10
Tue 27 of Jan, 2009 12:18 GMT-0000 Gary Cunningham-Lee Some updating. 9
Thu 12 of Jul, 2007 03:57 GMT-0000 Marc Laporte fix link 8
Mon 23 of Jul, 2007 14:05 GMT-0000 Gary Cunningham-Lee 7
Mon 23 of Jul, 2007 14:01 GMT-0000 Gary Cunningham-Lee 6
Thu 12 of Jul, 2007 03:57 GMT-0000 Marc Laporte fix link 5
Mon 20 of Feb, 2006 03:47 GMT-0000 Gary Cunningham-Lee Minor edits. 4
Mon 20 of Feb, 2006 03:46 GMT-0000 Gary Cunningham-Lee MInor edits. 3
Mon 20 of Feb, 2006 03:13 GMT-0000 Gary Cunningham-Lee Content clarified. 2
Fri 17 of Feb, 2006 07:04 GMT-0000 System Administrator 1