Theming guide

Flagging and unflagging content is usually done by clicking links. These links are known as "flag links".

If you aren't content with the way the links look, you can change their appearance by theming them.

There are two ways to theme the flag links:

  1. Use CSS
  2. Completely change the output HTML by editing the template producing them.

The following two sections describe these two different ways.

If you're content with how the theme looks, but you want to change where the links appear on the page (other than the default location) read Placing a flag link on a page.)

Flag CSS

A flag link consists of a bit more than HTML's {A} tag. It consists of a wrapper SPAN and of yet another SPAN --initially hidden-- that

Flag Templates

The previous section, the one describing our CSS, gives a "map" of the HTML that makes a flag link.

Theming examples

This section contains solutions to some common theming tasks. Feel free to add solutions of your own.

Guide maintainers

heather's picture