Tags:
create new tag
view all tags

Question

How do you change the color of an unvisited link as well as a visited link? I want to make unvisited links a darker blue, and the visited links a darker gray.

Environment

TWiki version: TWikiRelease2005x12x17x7873beta
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Red Hat 9.3, Linux 2.4.20
Web server: Apache 2.0.40
Perl version: Perl 5.8.0
Client OS:  
Web Browser:  
Categories: Installation

-- CharlesSheppard - 13 Sep 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

See PatternSkinCustomization for general information about modifying PatternSkin. Basically, what you're going to do is this:

  1. Go to PatternSkin in your installation and look at the attached css files. (I believe the one you'll want is colors.css but it might be in styles.css.) Find the style definitions associated with .twikiLink and copy those that you want to over-ride.
  2. Create a new text file called something like mystyles.css and paste in the style definitions you want to change. Edit the color attribute to your liking.
  3. Attach this file to some topic. I like to create a topic in the Main web called something like MySiteSkin to hold all my custom skin files.
  4. Finally, in TWiki.TWikiPreferences, or better Main.TWikiPreferences include this setting:
   * Set USERSTYLEURL = %PUBURL%/Main/MySiteSkin/mystyles.css

This will make the style definitions in mystyles.css over-ride the default skin styles.

-- LynnwoodBrown - 13 Sep 2006

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-09-13 - LynnwoodBrown
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.