Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Edting color of Attribute TEXT not option

Edting color of Attribute TEXT not option

Started by lilleypadgifts on 18 Sep 2013, 12:27 AM · Views: 797

Results 1 to 10 of 10
18 Sep 2013, 12:27 AM
#1
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Post #1 by lilleypadgifts

I've done multiple searches and can't seem to find this question already answered. I have a attribute that needs to be filled in on every item page. I would like to make the text RED or GREEN ?? It says "I choose to give 20% of this purchase price to :" and a drop menu shows the teams/groups who have registered with me to be on the site for fundraising. The names on the list do not need to be in color, just the words seen on the product page where they are to click and choose. Help!:unsure:

18 Sep 2013, 12:59 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

Try adding to your stylesheet:

.attribsSelect {
color: #FF0000;
}

18 Sep 2013, 5:44 PM
#3
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Post #3 by lilleypadgifts

stevesh:

Try adding to your stylesheet:

.attribsSelect {
color: #FF0000;
}

Thanks Steve, but I must not be adding it correctly or in the correct file because nothing happens. Also, I was thinking about it.... I have multiple Attributes because this is what I used to allow for customization, so if it DID work, would it change to color of all of them? If so, then I guess it wouldn't do much good because I need for this ONE to stand out. :dontgetit

18 Sep 2013, 6:34 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #4 by gjh42

If you want to address text for a specific attribute, you can install Flexible Attributes from Plugins. It gives an id to every attribute wrapper (like #wAttrib25) so any element in it can be singled out.
The actual select, input, etc. already has an id, but frequently there is no way for CSS to work back from that to address its label. If a radiobutton input is followed by its label, you can use something like```
#attrib-1-29 + label {what: ever;}

18 Sep 2013, 7:30 PM
#5
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Post #5 by lilleypadgifts

gjh42:

If you want to address text for a specific attribute, you can install Flexible Attributes from Plugins. It gives an id to every attribute wrapper (like #wAttrib25) so any element in it can be singled out.
The actual select, input, etc. already has an id, but frequently there is no way for CSS to work back from that to address its label. If a radiobutton input is followed by its label, you can use something like```
#attrib-1-29 + label {what: ever;}

Ok I downloaded and installed it but I have what is probably a stupid question....where do I find the ID's so I know which to edit? I'm reading over it but mind can't grasp it just yet.
19 Sep 2013, 4:39 AM
#7
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Post #7 by lilleypadgifts

gjh42:

You can look at view source of the page where the attribute displays; this will show the actual id that applies to each attribute.

I found the # .... its 51 .... but I can't seem to get the code correct for it to change anything. The page is http://www.spiritjewelry.org/index.php?main_page=product_info&cPath=65&products_id=180 its one of the top drop menus ..... I choose to give 20% of this purchase price to : ..... oh this forum... I can't turn off bold or italics OR enter to go to next line :unsure: .... but anyways I would like for that sentence to be in RED.

19 Sep 2013, 4:03 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #8 by gjh42

Something appears to be wrong with the code - you are getting the id="" added to the .wrapperAttribsOptions div, but the actual id is not being inserted. Can you try re-uploading the files? Maybe something got corrupted in your first attempt.

28 Sep 2013, 3:31 AM
#9
lilleypadgifts avatar

lilleypadgifts

Totally Zenned

Join Date:
Jan 2007
Location:
Southern California
Posts:
550
Plugin Contributions:
0

Post #9 by lilleypadgifts

Can you please check it again? I reloaded but I am still not seeing the number ...could be me though:huh:

30 Sep 2013, 2:06 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #10 by gjh42

Still no attribute wrapper ids being applied. I can't tell why from here, but it would be better to move to the Flexible Attributes support thread for further discussion. I'll try to gather more information there.