Changing background color phoca gallery 4.1.2

Phoca Gallery - image gallery extension
gayan
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 22 Jul 2014, 14:29

Changing background color phoca gallery 4.1.2

Post by gayan »

How to change the background color and other elements such as font color, size, etc in Phoca gallery 4.1.2
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9966
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Changing background color phoca gallery 4.1.2

Post by Benno »

Hi,
use e.g. Firebug and edit the corresponding CSS file(s).

Kind regards,
Benno
gayan
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 22 Jul 2014, 14:29

Re: Changing background color phoca gallery 4.1.2

Post by gayan »

I try it, but still not working.

I edit media/com_phocagallery/css/custom/default.php

any other file to edit ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Changing background color phoca gallery 4.1.2

Post by Jan »

Hi, you can do it easily per CSS, not in php file.

Go to administration, create new CSS file and add new attributes there.

Example:
1) create "custom.css" file
2) add:

.pg-cv-name {
color: red;
}

This will change the font color to red (font color of image titles)

To see which CSS class or id you should add, use the Firebug in Firefox (for example) - Mouse hover on the element (part of your site) you want to change and the CSS class or id will be displayed for you.

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