error messg color

Phoca Guestbook - creating guestbooks in Joomla! CMS
jvroomans
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 12 Mar 2010, 23:45

error messg color

Post by jvroomans »

Hi,
How can I change the color and font size of error messages?
Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: error messg color

Post by Jan »

Hi, errror messages which are displayed by Joomla! (system messages) can be styled by your template css. The red messages in guestbook can be styled in:

\components\com_phocaguestbook\views\phocaguestbook\view.html.php
line cca 216
If you find Phoca extensions useful, please support the project
jvroomans
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 12 Mar 2010, 23:45

Re: error messg color

Post by jvroomans »

Thanks. But I don't understand. :( Line 216 says:
$require['username'] = 1;
So I don't see what I should change to alter the color or font size?

Jos
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: error messg color

Post by Jan »

Hi, I have written cca 216, it can be different on different editors

so it should be this string:

Code: Select all

$smB 				= '<small style="color:#fc0000;">';
Do you see the last stable release?
If you find Phoca extensions useful, please support the project
jvroomans
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 12 Mar 2010, 23:45

Re: error messg color

Post by jvroomans »

Thanks! I changed the font color. Now I would also like to make a bigger font size to make it easier to read. Could you tell me where I could find that?
Thanks very much for your help and for the great extensions you make!
Jos
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: error messg color

Post by Jan »

Just use css for styling it.

font-size: ...px etc.

Jan
If you find Phoca extensions useful, please support the project
Post Reply