Patriarch K Posted September 7, 2005 Share Posted September 7, 2005 This is a very small problem, but when one try to register himself it looks like this: http://upl.silentwhisper.net/uplfolders/upload9/Problem1.JPG The problem is the grey text (The "Required"-text) to the right. I just can't find where to change that color to black. I have searched through all the files but i can't find where to change it. Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2005 Share Posted September 7, 2005 with the default store the class responsible is called .inputRequirement its in the catalog\stylesheet.css Link to comment Share on other sites More sharing options...
Patriarch K Posted September 7, 2005 Author Share Posted September 7, 2005 That did not work. Can i delete that text somewhere? Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2005 Share Posted September 7, 2005 do you have a url of the shop? Link to comment Share on other sites More sharing options...
Patriarch K Posted September 7, 2005 Author Share Posted September 7, 2005 Yes: http://www.twana.se Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2005 Share Posted September 7, 2005 there is an html font tag next to the "obligatorisk" looks like this <font color="#AABBDD">obligatorisk</font></small></span></td> it could be either in the catalog\create_account.php or in your language definition file check for any font colors for those fields in catalog\includes\langueages\<language>\create_account.php Link to comment Share on other sites More sharing options...
Patriarch K Posted September 7, 2005 Author Share Posted September 7, 2005 Nope, i have already looked there but nope. Nothing there... Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2005 Share Posted September 7, 2005 in the language file dont you have a definition like this? define('TEXT_FIELD_REQUIRED', ' <span class="fieldRequired">* Required</span>'); so whats the class name in your case I do not see that name "fieldRequired" in your css files this in turn is used by the tep_draw_input_field function it appends the definition to the end of the field. (just in case the function appends some tags) by default the fieldrequired is like this .fieldRequired { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; } Link to comment Share on other sites More sharing options...
Patriarch K Posted September 7, 2005 Author Share Posted September 7, 2005 I added both but it still doesn't work. If i right click and chose view source, then i can change the color, but i don't know what file it is. Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2005 Share Posted September 7, 2005 ok then open your catalog\create_account.php file and post one of the table cells that prints out the entry boxes. should look something like this: (I just pulled the first name field) <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td> </tr> Link to comment Share on other sites More sharing options...
Patriarch K Posted September 7, 2005 Author Share Posted September 7, 2005 Here it is... <?php if (ACCOUNT_GENDER == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_GENDER; ?></td> <td class="main"><?php echo tep_draw_radio_field('gender', 'm') . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f') . ' ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_LAST_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('lastname') . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td> </tr> <?php if (ACCOUNT_DOB == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td> <td class="main"><?php echo tep_draw_input_field('dob') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td> <td class="main"><?php echo tep_draw_input_field('email_address') . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td> </tr> </table></td> </tr> </table></td> </tr> Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2005 Share Posted September 7, 2005 ok that looks like the default now in the language file: catalog\includes\languages\english.php (or whatever the language you use is) should have something like this: define('ENTRY_FIRST_NAME_TEXT', '*'); well in your case will be a different string not an asterisk is there a color tag or some html tag around it? Link to comment Share on other sites More sharing options...
Patriarch K Posted September 7, 2005 Author Share Posted September 7, 2005 Yeah, in that file i could change the color. Thanks a lot :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.