Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16312

    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?

    #91044

    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,

    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Switching round labels and fields on Contact page on Choices Theme’ is closed to new replies.