Question
. Is there some way to set the default font for all TWiki content to (say) Arial/Helvetica, i.e. affecting all existing and new pages automatically? This would make our intranet TWiki site fit in with our existing intranet site a lot better.
- TWiki version: 1 May 2000
- Web server: Apache
- Server OS: Linux
--
RichardDonkin - 25 Jan 2001
Answer
Edit the template files in
twiki/templates/ and define your font. Probably the easiest with style sheets. Please consult HTML docs.
--
PeterThoeny - 26 Jan 2001
Followup
I've attached the CSS file that I now use on most of our Twiki webs - it uses Arial/Helvetica type fonts, and changes the link styles a bit, but is fairly vanilla. It may help other CSS newbies!
To implement the changes, at least on a Unix/Linux box, try something like the following to do a global edit (copies original files to .bak files).
You are strongly advised to copy one of the templates and test that it does what you want before running this!
perl -pi.bak -e 's|</HEAD>| <LINK rel="Stylesheet" href="%PUBURLPATH%general.css" type="text/css"> </HEAD>|' *.tmpl
This assumes that you put general.css in your PUBURLPATH directory.
Another question
Is there an easier way of escaping the 'href=' and the '%' than I did above? The HTML % entity doesn't seem to work on IE5 or Opera.
--
RichardDonkin - 11 May 2001
To escape a TWiki variable,
--
PeterThoeny - 18 May 2001