I've added an extra field in the form of a parent drop down list, which shows as a search option when certain categories are selected. My 'problem' is that the label for this list appears next to it as opposed to over the top as with all of the other fields in the global search form. If you wanted to have a lookto see what I mean go to first4horses.co.uk and selec,t either 'horses for sale' or horses for loan' categories. An extra option then displays at the bottom to selet Sex, with the options Mare, Gelding or Stallion. You'll see that the Label 'Sex' appears next to rather than at the top of the drop down list. How do I put the label on top as with the other field labels? Would I be right in thinking that this would be done in the searchform.tpl? . Also, ideally I would like this field to appear directly under the category field, is that possible and how would I go about it? I am running 68C Developer using template codes Modena Aqua with the global search form. This is only an issue with the global search on the home page etc., when I go to the search page itself all of the field labels display next to the field itself. Very grateful for any help you can give.
Try this: - open your ajax.php file (in the main folder) - around line 255, you will see: PHP: $optdata .= "<p><label for='opt" . $row['fID'] . "'>" . $star . " " . $row['fName'] . ":</label><select name=\"opt" . $row['fID'] . "\" id=\"opt" . $row['fID'] . "\">"; - insert a break tag between the ending label tag and the beginning select tag so that the line is now: PHP: $optdata .= "<p><label for='opt" . $row['fID'] . "'>" . $star . " " . $row['fName'] . ":</label><br /><select name=\"opt" . $row['fID'] . "\" id=\"opt" . $row['fID'] . "\">"; Let us know if it works.
Thanks for your reply. Have just given that a go, but to no avail, the label is still sitting next to the field, rather than above. Thanks for trying though.
No it still appears the same for me. Just tried in IE, Chrome & Firefox just in case and was the same in all three, am confused now!
Perhaps you should consider actually opening a support ticket with TemplateCodes directly since your issue is specifically regarding their third party product.