Advertisement:

Author Topic: Change color of category  (Read 2312 times)

ad12333

  • Newbie
  • *
  • Posts: 9
Change color of category
« on: December 04, 2012, 04:02:33 pm »
hi people, i need help.

how can i change a color of the category in modern theme??

for each category, i want a different color

Help me please

see my website: http://compraja.net46.net/

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: Change color of category
« Reply #1 on: December 04, 2012, 09:24:45 pm »
use firebug then find style.css line and change it

ad12333

  • Newbie
  • *
  • Posts: 9
Re: Change color of category
« Reply #2 on: December 04, 2012, 10:03:26 pm »
sorry my english,
i was tried, but do nothing.

firebug show me this in my style.css:

.home #main h1 { border-bottom:2px solid #5D478B; color:#5D478B; font:18px Georgia, Times, 'Times New Roman', serif; }
.home #main h1 strong { border-bottom:1px solid #DDD; display:block; font-weight:normal; padding-bottom:7px; }
.home #main .categories { clear:both; float:left; margin-bottom:25px; padding:15px 0 0 10px; width:100%; }
.home #main .categories .col { float:left; width:210px; }
.home #main .categories .col.c2 { color:#9ACD32; margin:0 25px; }
.home #main .categories.c2 .col { float:left; width:335px; }
.home #main .categories.c2 .col.c2 { color:#9ACD32; margin:0 0 0 25px; }
.home #main .categories.c1 .col { clear:both; float:left; width:100%; }
.home #main .categories.c1 .category ul { clear:both; float:left; width:100%; }
.home #main .categories.c1 .category li { float:left; margin-right:17px; width:330px; }
.home #main .categories .category { margin-bottom:15px; }
.home #main .categories .category h1 { margin-bottom:5px; }
.home #main .categories .category h1 strong a{ color:#5D478B; font-size: 17px; }
.home #main .categories .category h1 span { color: #4D4D4D; }
.home #main .categories .category li { border-bottom:1px dotted #DDD; color:#CCC; font-size:11px; padding:5px 0; }
.home #main .categories .category li span{color: #4D4D4D;}

ad12333

  • Newbie
  • *
  • Posts: 9
Re: Change color of category
« Reply #3 on: December 04, 2012, 10:14:05 pm »
when i try change a color of one category, all categories change.

how can i change one color at each time ?

pecke

  • Full Member
  • ***
  • Posts: 169
Re: Change color of category
« Reply #4 on: December 04, 2012, 11:18:53 pm »
You cant do that in easy way...you must call all categories with category id....
if category id is 44   font-color:"cc0000;
 if category id is 33   font-color:"fffffff;

so better php mag can do that  :)
i am not good in php codes

ad12333

  • Newbie
  • *
  • Posts: 9
Re: Change color of category
« Reply #5 on: December 05, 2012, 08:31:27 am »
You cant do that in easy way...you must call all categories with category id....
if category id is 44   font-color:"cc0000;
 if category id is 33   font-color:"fffffff;

so better php mag can do that  :)
i am not good in php codes

how can i do that??

i dont find, the category in main.php file