Please can anyone suggest how I can get labels to show up on the left rather than the default right of the field entry? I have tried looking in the editor for contact_form.php but I can't see anything obvious to switch around the settings. Is there a setting somewhere that I haven't yet discovered?
Switching round labels and fields on Contact page on Choices Theme
2 posts from 2 voices-
Posted 8 months ago #
-
Hi,
Open framework > php > class-form-generator.php and find this code
$this->elements_html .= "<p class='".$p_class."' id='element_$id'>"; $this->elements_html .= ' <input name="'.$id.'" class="text_input '.$element_class.'" type="text" id="'.$id.'" value="'.$value.'"/><label for="'.$id.'">'.$element['label'].$required.'</label>'; $this->elements_html .= "</p>";Reverse the input and label.
$this->elements_html .= "<p class='".$p_class."' id='element_$id'>"; $this->elements_html .= ' <label for="'.$id.'">'.$element['label'].$required.'</label><input name="'.$id.'" class="text_input '.$element_class.'" type="text" id="'.$id.'" value="'.$value.'"/>'; $this->elements_html .= "</p>";You need to style it again on your custom.css
Regards,
IsmaelPosted 8 months ago #
Reply
You must log in to post.














