I have 17 sections, and I want to know how can I change the bg-color of sections header.
I can change it in css, but ,actually I want every of my section have their own color..
How can I do it ?
give me exact clue please...I know css, but i don't know php very much..
thank you
editing phocadownload for 1.3.9 need clues
-
navibd
- Phoca Enthusiast

- Posts: 83
- Joined: 18 Jul 2010, 18:10
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: editing phocadownload for 1.3.9 need clues
Hi, then you need to do some php if clause, e.g. to load specific css, or e.g. to add some style to the html tag, e.g.
....
Jan
Code: Select all
if ($something == 1) {
$style= 'background: green;';
} else {
$style= 'background: blue;';
}
echo '<div style="'.$style.'"'> ... </div>';Jan
If you find Phoca extensions useful, please support the project
-
navibd
- Phoca Enthusiast

- Posts: 83
- Joined: 18 Jul 2010, 18:10
Re: editing phocadownload for 1.3.9 need clues
Thank you Jan, should I edit css or PHP file? which one ?
Thank you in advanced..
Thank you in advanced..
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: editing phocadownload for 1.3.9 need clues
Hi, this is a php code, so the php in the view you want to use this css.
Jan
Jan
If you find Phoca extensions useful, please support the project