Visited Links issue

May 28, 2010 at 6:46 PM

I have completely finished customizing the latest customer portal for CRM, but for the life of me I cannot find where to change the colors of hyperlinks both before and after they are visited.

Can anyone point me in the right direction.



May 31, 2010 at 2:59 PM

Hi Greg,

It requires a little setup but you can definatly do this one of two ways:

Add the rule to the CSS file

  • In the code files, locate the "css/base.css" style sheet.
  • Add the following rules:
    • a { color: <select your color> }
    • a:visited { color: <select your color> }

This will change the colors of the links, however if in the future you wish to change the color you will need to edit this file.


Add a Site Setting (recommended)

Another way to change this would be to create a new site setting.  This site setting will provide you more flexiblity as you will be able to change the link color from the CRM in the future.

  • Locate the "css/settings.css.aspx" file
  • Add the following rules to the code:
    • a { color: <asp:Litteral runat="server" Text="<%$ SiteSetting: /css/links %>" />;
    • a:visited { color: <asp:Litteral runat="server" Text="<%$ SiteSetting: /css/links_visited %>" />;
  • Build the project
  • In the CRM create the following Site Settings (site settings are located in Content Management in the Website section)
    • Setting #1
      • Name: /css/links
      • Website: Customer Portal
      • Value: <color of the links>
    • Setting #2
      • Name: /css/links_visited
      • Website: Customer Portal
      • Value <color of the links>
  • Refresh your website

Christine Fischer – Developer
Adxstudio Inc.