Now, updating for Tiki 9! Get Smart...
Now accepting new user registrations! Become a contributor.
| More
Join Print Print multiple pages Convert to PDF

Adding Custom CSS Styles


There are two ways to add custom CSS styles to your Tiki:

Later, you'll see how to add these styles on a per-page basis.
TipTip:
Use the Tiki Theme Generator to customize your site's theme without having to modify CSS files!


NoteNote:
For complete information on using CSS, see http://www.w3.org/Style/CSS/(external link).


Including an Additional CSS

If you already have custom styles in a CSS style sheet, you can easily add the CSS file to your Tiki.


9.x
  1. Copy your .css to your webserver. You could FTP the file, or even use Tiki's file gallery to store the file.
    NoteNote:
    Depending on your server configuration, storing CSS files in the Tiki file gallery may cause performance issues.
  2. On the Customization tab of the Admin: Look & Feel page, add the following to the Custom HTML Content area:
    Image
    Adding a CSS file

    Including a CSS file
    <li<x>nk rel="stylesheet" href="DIRECTORY/FILENAME.css" type="text/css" media="screen" />
  3. Click Apply.
  4. Clear the Tiki caches.
TipTip:
Use the Change Highlighter button to select the HTML mode.


8.x & 7.x
  1. Copy your .css to your webserver. You could FTP the file, or even use Tiki's file gallery to store the file.
    NoteNote:
    Depending on your server configuration, storing CSS files in the Tiki file gallery may cause performance issues.
  2. On the Customization tab of the Admin: Look & Feel page, add the following to the Custom HTML Content area:
    Image
    Adding a CSS file

    Including a CSS file
    <li<x>nk rel="stylesheet" href="DIRECTORY/FILENAME.css" type="text/css" media="screen" />
  3. Click Apply.
  4. Clear the Tiki caches.

6.x
  1. Copy your .css to your webserver. You could FTP the file, or even use Tiki's file gallery to store the file.
    NoteNote:
    Depending on your server configuration, storing CSS files in the Tiki file gallery may cause performance issues.
  2. On the General Layout Options tab of the Admin: Look & Feel page, add the following to the Custom HTML Content area:
    Image
    Adding a CSS file

    Including a CSS file
    <li<x>nk rel="stylesheet" href="DIRECTORY/FILENAME.css" type="text/css" media="screen" />
  3. Click Apply.
  4. Clear the Tiki caches.


You can now use any of the styles from your custom .css file in a Tiki wiki page. For example, you could use the DIV plugin:
Using a custom CSS style
{DIV(class="CUSTOM_CSS_CLASS")}
   This text will be styled with the CUSTOM_CSS_CLASS.
{DIV}



Creating Inline Styles

If you do not have a completed CSS file, you can create custom CSS styles in Tiki.

9.x
  1. From the Admin: Look & Feel page, click the Customization tab.
  2. On the Customization tab, type your CSS style definitions in the Custom CSS field.
    Look and Feel
    Custom CSS style definitions

    Including a CSS style
    .CUSTOM_CSS_CLASS {padding:1em, font-size:2.0em; font-weight:bold}
  3. Click Apply.
  4. Clear all Tiki caches.
TipTip:
Use the Change Highlighter button to select the CSS mode.


8.x & 7.x
  1. From the Admin: Look & Feel page, click the Customization tab.
  2. On the Customization tab, type your CSS style definitions in the Custom CSS field.
    Look and Feel
    Custom CSS style definitions

    Including a CSS style
    .CUSTOM_CSS_CLASS {padding:1em, font-size:2.0em; font-weight:bold}
  3. Click Apply.
  4. Clear all Tiki caches.

6.x
  1. From the Admin: Look & Feel page, click the Custom CSS tab.
  2. In the Custom Code area, type your CSS style definitions in the Custom CSS field.
    Look and Feel
    Custom CSS style definitions

    Including a CSS style
    .CUSTOM_CSS_CLASS {padding:1em, font-size:2.0em; font-weight:bold}
  3. Click Apply.
  4. Clear all Tiki caches.


You can now use your custom style in a Tiki wiki page. For example, you could use the DIV plugin:
Using a custom CSS style
{DIV(class="CUSTOM_CSS_CLASS")}
   This text will be styled with the CUSTOM_CSS_CLASS.
{DIV}



Now that you know how to customize specific CSS styles, how can you determine which CSS style to edit?


Contributors to this page: Rick Sapir .
Page last modified on Thursday, April 05, 2012 10:21:59am EDT by Rick Sapir.
The content on this page is licensed under the terms of the Copyright Information.

Buy the Books

Tiki Essentials & Tiki for Smarties -- Buy the Books.
Available from Amazon, LuLu, and more as paperback or ebook...

What do you think?

What do you think of this project?



Anti-Bot verification code image Try another code



View Results
(Votes: 20)

"Even though I am a newbie...I received a lot of inspiration from this site and Tiki for Smarties. Thanks."

Is Essentials helpful?

Essential Readers



Advertising



Powered by Tiki Wiki CMS Groupware
Creative Commons Copyright. Some rights reserved.
Tiki Essentials (this site) is © 2011-2012 by Rick Sapir, published by KeyContent.org, and is licensed
under a Creative Commons Attribution-Share Alike 3.0 United States License. Some rights reserved. Privacy Policy.
Permissions beyond the scope of this license may be available at http://twessentials.tikiforsmarties.com/Copyright Information.
Questions, comments, or concerns about this site or the guide? Let me know.
New to Tiki? Try Tiki for Dummies Smarties: A beginner's guide to using Tiki Wiki CMS Groupware.


Feedback Form
Feedback Analytics