Custom CSS and JS

You can create styles/custom.js or styles/yourtheme/custom.js and that should get included automatically. You may need to empty your Tiki cache.

Change size of subtitle

custom CSS

#sitesubtitle {
font-size: 24px;
}

Help - I broke my theme

Apparently, a problem with my custom theme is preventing me from accessing my site normally.

Reset the theme "manually": If you can't access the admin pages to set your site's theme back to one that is known to work, you can reset the theme from the back end, so to speak.

Database method: Use phpMyAdmin on your server to access your Tiki database. In the table "tiki_preferences", find the row for "site_style". Edit this row by replacing the custom theme name with a standard theme, such as thenews.css.

FTP method (easier): Using your FTP client, go to the styles directory of your Tiki installation and rename the theme currently set as the site theme, such as by changing its ".css" file extension to ".txt". Tiki will revert to the default. Log in using the default theme and fix what is wrong. Also clear the site caches.

When trying out a new theme, it is much better to use the "switch theme" module to select it. Don't make a new and untried theme the site theme without first trying it out from the switch-theme module.

I am stuck in a theme

To change themes, you can point your browser to a non faulty theme:

Point your browser to: tiki-switch_theme.php?theme=fivealive.css

Then, also check to Clear the cache with tiki-admin_system.php?do=all

If anything doesn't change

For some unknown reason the theme doesn't change. Look directly in the database in 'tiki_preferences' look at:

You should do this for any language you use. Even if your site is only in English, you can use the English to English translation file to have custom strings and keep your Tiki code untouched and make upgrades easier (pretty nifty if you ask me!)

After any file change, make sure to empty all your cache

How to show content just when in certain pages/features. Ex.: tiki-searchresults.php

So if you want to modify tiki-searchresults.php, you find templates/tiki-searchresults.tpl

For the container

templates/tiki.tpl is the master container.

Say you want to affect the master container based on the current page, you can do

{if $mid eq "tiki-searchresults.tpl"}
bla bla
{/if}

Add a Banner for each Blog, like a personal logo header

add the following code in Site Ads and Banners Content:in Site Ads and Banners section in Administration menu. http://www.yoursite.com/tiki-admin.php?page=adsthis exemple shown a banner set in zone 'ZoneName' if the blogid #2 is active.

{if $blogId eq '2'}
{banner zone=ZoneName}
{/if}

How to force switch Theme for Anonymous

You could use the Group Theme feature but it seems broken currently in Tiki 5 so here's a workaround using JavaScript code in Admin > Look & Feel > General Layout > Custom HTML <head> Content ("Registered users can switch themes" - preference name change_theme - must be enabled):

Slideshow

Mobile

Clearing cache

Improve communication for planned maintenance

If your site changes hosts, you may have time to plan a nice message on the maintenance page of the old host. The maintenance mode only permits a short sentence, as the maintenance page should work even if the database is unavailable.

Note that all is into a <pre> tag, so don't forget the line breaks. Also, handle single quotes with care.

new example message

echo '</p>
The site xxxxxx.xxx is being transferred between servers between 19:30 and ca. 21:00 GMT today, 29 December 2011.
Access during this time may be interrupted for short periods. No editing of pages and no posting will be possible during this time.
While the new location is being propagated over the Internet (can take hours) you can <a href="http://new-xxxx.xxx">reach the site here.</a>
<form name="loginbox" action="tiki-login.php?page=tikiIndex" method="post">