Site logo

Archived topic

W3C validation error

5 replies · Started by A. R. Choudhury on March 30, 2021

Viewing posts 1–6 of 6

Hi there,

the HTML validation errors are coming from two plugins:

1. The Social Sharing links
2. The Author box.

you would have to address those issues with the plugin developers.

The CSS warnings in the second validation can be ignored... they are CSS prefixes required for old browser support.

Try adding this PHP Snippet to your site:

add_filter( 'comment_form_defaults', function( $defaults ) {
  $defaults['comment_field'] = sprintf(
    '<p class="comment-form-comment"><label for="comment" class="screen-reader-text">%1$s</label><textarea id="comment" name="comment" cols="45" rows="8" required></textarea></p>',
    esc_html__( 'Comment', 'generatepress' )
  );

  return $defaults;
}, 20 );

Adding PHP: https://docs.generatepress.com/article/adding-php/

Thanks, David. Problem solved.

Glad to hear that

This archived topic is closed to new replies.