Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hans Kanns
globaly change link-color
December 11, 2012 2:59 AM
Answer

Hans Kanns

Rank: New Member

Posts: 10

Join Date: October 10, 2012

Recent Posts

Hi

I'm using Liferay 6.1 with the Zoe-Resort-Theme. I can't find a way to change the color for fonts. Especially the standard-color for links (deep blue when unvisited and purple when visited) ruins the layout. I tried this:
http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/color-schemes

I did it in the webapps/zoe-resort/ folders. After that the scheme is selectable in the page-properties, but doesn't seem to have any effect. The scheme.css in /color_schemes has the (test)-content:

body.scheme { background-color: #E0E0E0; color: #FFFFFF; font-weight:bold; font-family:Arial; font-size:120%; }
a:link { color: #EE0000; text-decoration:none; font-weight:bold; }
a:visited { color: #EEAAAA; text-decoration:none; font-weight:bold; }
a:focus { color: #00AA00; background-color: #FFFF77; font-weight:bold; }
a:hover { color: #EE0000; text-decoration:none; background-color: #FFFF99; font-weight:bold; }
a:active { color: #0000EE; background-color: #FFFF99; font-weight:bold; }

Any ideas? Thanks!
Priyanka Dhingra
RE: globaly change link-color
December 11, 2012 5:18 AM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

create a theme
http://michi-path.blogspot.in/2012/07/create-theme-from-scratch-liferay.html
under the _diffs/css/custom.css

1a:visited { color: #EEAAAA; text-decoration:none; font-weight:bold; }

put this with color of your choice
deploy the theme and implement it for your page
Hans Kanns
RE: globaly change link-color
December 11, 2012 5:34 AM
Answer

Hans Kanns

Rank: New Member

Posts: 10

Join Date: October 10, 2012

Recent Posts

Putting the code directly in the custom.css did the job, thanks Priyanka!