You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I enable WP 4.2 support in the comments the plugin outputs a <div class="g-recaptcha"> inside a <p class="form-submit"> - which isn't valid code and breaks styles when the browser pops it out.
I'm working around it by replacing the comments_form defaults and making .form-submit a div instead of a p
/* The Recaptcha plugin injects a div into the form-submit <p> - but a div cannot be inside a P
so it all falls apart style wise. Make the form-submit into a div instead of a p */
function wpdocs_comment_form_defaults( $defaults ) {
$defaults['submit_field'] = '<div class="form-submit">%1$s %2$s</div>';
return $defaults;
}
add_filter( 'comment_form_defaults', 'wpdocs_comment_form_defaults' );
it's be better if we could output the recaptcha as it's own field - rather than injecting it inside the wrapper for the submit field.
The text was updated successfully, but these errors were encountered:
If I enable WP 4.2 support in the comments the plugin outputs a
<div class="g-recaptcha">
inside a<p class="form-submit">
- which isn't valid code and breaks styles when the browser pops it out.I'm working around it by replacing the comments_form defaults and making
.form-submit
adiv
instead of ap
it's be better if we could output the recaptcha as it's own field - rather than injecting it inside the wrapper for the submit field.
The text was updated successfully, but these errors were encountered: