Skip to content

Commit 6ebcf05

Browse files
author
Antti Kuosmanen
committed
Wrap example form inputs in p tags to retain style
1 parent 8719323 commit 6ebcf05

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

classes/class-cpt-wplf-form.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,16 @@ function default_content_cpt( $content ) {
169169
// default content starts here:
170170
// @codingStandardsIgnoreStart
171171
?>
172-
<label for="name"><?php esc_html_e( 'Please enter your name', 'wp-libre-form' ); ?></label>
173-
<input type="text" name="name" id="name" placeholder="<?php echo esc_html_x( 'John Doe', 'Default placeholder name', 'wp-libre-form' ); ?>">
172+
<p><label for="name"><?php esc_html_e( 'Please enter your name', 'wp-libre-form' ); ?></label>
173+
<input type="text" name="name" id="name" placeholder="<?php echo esc_html_x( 'John Doe', 'Default placeholder name', 'wp-libre-form' ); ?>"></p>
174174

175-
<label for="email"><?php echo esc_html_x( 'Please enter your email address', 'wp-libre-form' ); ?> <?php esc_html_e( '(required)', 'wp-libre-form' ); ?></label>
176-
<input type="email" name="email" id="email" placeholder="<?php echo esc_html_x( 'example@email.com', 'Default placeholder email', 'wp-libre-form' ); ?>" required>
175+
<p><label for="email"><?php echo esc_html_x( 'Please enter your email address', 'wp-libre-form' ); ?> <?php esc_html_e( '(required)', 'wp-libre-form' ); ?></label>
176+
<input type="email" name="email" id="email" placeholder="<?php echo esc_html_x( 'example@email.com', 'Default placeholder email', 'wp-libre-form' ); ?>" required></p>
177177

178-
<label for="message"><?php esc_html_e( 'Write your message below', 'wp-libre-form' ); ?> <?php esc_html_e( '(required)', 'wp-libre-form' ); ?></label>
179-
<textarea name="message" rows="5" id="message" placeholder="<?php echo esc_html_x( 'I wanted to ask about...', 'Default placeholder message', 'wp-libre-form' ); ?>" required></textarea>
178+
<p><label for="message"><?php esc_html_e( 'Write your message below', 'wp-libre-form' ); ?> <?php esc_html_e( '(required)', 'wp-libre-form' ); ?></label>
179+
<textarea name="message" rows="5" id="message" placeholder="<?php echo esc_html_x( 'I wanted to ask about...', 'Default placeholder message', 'wp-libre-form' ); ?>" required></textarea></p>
180180

181-
<button type="submit"><?php esc_html_e( 'Submit', 'wp-libre-form' ); ?></button>
181+
<p><button type="submit"><?php esc_html_e( 'Submit', 'wp-libre-form' ); ?></button></p>
182182

183183
<!-- <?php echo esc_html_x( 'Any valid HTML form can be used here!', 'The HTML comment at the end of the example form', 'wp-libre-form' ); ?> -->
184184
<?php

0 commit comments

Comments
 (0)