How to change error/hint message placement in form layout
-
Hello!
Just wondering if there is a way to change where the required field error/hint message is placed in the form layout? Currently, it is automatically being placed inside the div that has the input field. What I want to do is to place it outside that div and the div that has the field label. Here’s a simple illustration of how it looks in my code:
<div id="fscf_div_clear1_1" style="clear:none; margin-bottom: 12px;"> <div id="fscf_div_field1_1" style="clear:none;"> <---Where I want the ERROR message to be <div style="text-align:left;"> <---DIV that has field LABEL <label class="form-label" for="fscf_email1"> Email:<span style="text-align: left;">*</span> </label> </div> <div style="text-align:left;"> <---DIV that has the INPUT field <div class="form-hint">Required</div> <---ERROR message <input class="form-box" type="text" id="fscf_email1" name="email" value=""/> </div> </div> </div>
I’m fairly new to WordPress (especially PHP) so I would truly appreciate it if someone can guide me through it. Thanks in advance!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘How to change error/hint message placement in form layout’ is closed to new replies.