jReviews Support Forum

jReviews 1.x => Templates => Topic started by: maxx on January 25, 2008, 03:09:40 PM



Title: change background color need help finding code.
Post by: maxx on January 25, 2008, 03:09:40 PM
FIRST I WOULD LIKE TO START OFF SAYING THANX FOR THE GREAT COMPONENT AND AWESOME SUPPORT!!!

I am trying to change the background color in a specific area please see following page:
 http://www.spacitynitelife (dot) com/component/option,com_jreviews/task,listsection/section,6/dir,1/Itemid,49/

I am trying to change the white/ light grey boxes to a blue so the text can be readable but my problem with that is i dont know what code to change . I have changed background colors in other sections of jreviews by making changes in (jreviews.css) is this where i need to make the changes for this as well?

Please help identify what CSS and what code i need to modify.

Thanx MaXx
 


Title: Re: change background color need help finding code.
Post by: Alejandro on January 25, 2008, 04:07:44 PM
listings.css

tr.tableview_row2 { background-color: #DFDFDF; }


Title: Re: change background color need help finding code.
Post by: maxx on January 25, 2008, 05:01:18 PM
Alejandro, you are awesome Thanx for all the support

MaXx


Title: Re: change background color need help finding code.
Post by: bpodraza on February 06, 2008, 09:05:19 AM
Alejandro, now how could I do that so each section has a different color? For Example, Restaurants are brown, Hotels are Green, and so forth.

Will I need to assign a unique .css to each section? If so, how is that done? I've been trying to figure that out.

Thanks in advance.


Title: Re: change background color need help finding code.
Post by: Alejandro on February 06, 2008, 09:39:41 AM
If you want to do this within the same list, then you would have to have select field where you specify the type of listing (rest, hotels, etc). And then use that field to change the css.

For example.

Field name = jr_type

The options for the field are (Text/Value):

1) Restaurant/restaurant
2) Hotel/hotel
3) etc.

In the list template or anywhere else you add a new class to change the background color:

class="existing_class {JR_TYPE}"

You can have more than one class in there.

Then in the listings.css file

.restaurant {background-color:green;}
.hotel {background-color:brown;}


Title: Re: change background color need help finding code.
Post by: bpodraza on February 06, 2008, 10:31:53 AM
Nevermind, I figured it out. I was trying to put "listings_food" in the suffix. Turns out all I needed was "_food" without the "listing" and .css.



Title: change TEXT color need help finding code.
Post by: maxx on February 10, 2008, 02:55:01 PM
OK i need a little more help Please...
I am trying to find the file and code to modify to change text color on the "submit new listing" page.

Thanx Maxx


Title: Re: change background color need help finding code.
Post by: Alejandro on February 11, 2008, 10:21:55 AM
You need to read this article so you can try identify classes and files by yourself:

http://support.reviewsforjoomla.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=15&nav=0

I think you are looking for the .label class in jreviews.css.