Tags:
create new tag
, view all tags
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 &percnt; entity doesn't seem to work on IE5 or Opera.

-- RichardDonkin - 11 May 2001

To escape a TWiki variable,

write: To get: Instead of:
%<nop>WEB% %WEB% Support
&#37;WEB% %WEB% Support

-- PeterThoeny - 18 May 2001

Topic attachments
I Attachment Action Size Date Who Comment
Cascading Style Sheet filecss general.css manage 0.5 K 2001-05-11 - 18:42 UnknownUser Sample CSS file using Arial/Helvetica
Topic revision: r4 - 2001-05-19 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.