Page 1 of 1

editing phocadownload for 1.3.9 need clues

Posted: 05 Aug 2011, 17:03
by navibd
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

Re: editing phocadownload for 1.3.9 need clues

Posted: 07 Aug 2011, 11:35
by Jan
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.

Code: Select all

if ($something == 1) {
  $style= 'background: green;';
} else {
  $style= 'background: blue;';
}

echo '<div style="'.$style.'"'> ... </div>';
....

Jan

Re: editing phocadownload for 1.3.9 need clues

Posted: 08 Aug 2011, 21:24
by navibd
Thank you Jan, should I edit css or PHP file? which one ?
Thank you in advanced..

Re: editing phocadownload for 1.3.9 need clues

Posted: 18 Aug 2011, 22:24
by Jan
Hi, this is a php code, so the php in the view you want to use this css.

Jan