Loading...
 
Themes

Themes


Re: Change font on a page

Japan

Font styles are set by the stylesheet of the theme being used. Typically the body selector contains the font properties, and this is applied to the whole site except where otherwise specified.

Single wiki pages as-is don't have any unique identifier that can be used to assign a font style. But you can use the Theme Manager to assign a stylesheet to an object, such as a wiki page. Let's say you normally use the Darkroom theme, but you want green text in the wiki area of a page called ))TheGreenRoom((. You can make a new stylesheet called, say, "greenroom.css" and put

@import "darkroom.css";

at the top. So far the new stylesheet will produce pages exactly like darkroom.css does. Now add

.wikitext {color: green}

Now greenroom.css differs from darkroom.css in that text in the wiki div is green.

Now upload this file to your styles/ directory and use the Theme Manager to assign greenroom.css to ))TheGreenRoom((. Only this page will get the green text.

To give areas within the wikitext a different color, you can use the DIV or TAG plugins (syntax directions are at the bottom of the wiki edit page). For areas of the overall page (outside of wikitext), you can use the method described above, after determining the div to be styled (taking the place of ".wikitext" in the example).

-- Gary

There are no comments at this time.