Comments label translation

Hi, I’m trying to figure out how to modify comments labels (Name, Email) and default input values (Your Name, Your Email). Can’t find it in wp-comments.php

Maybe you can point me the right direction.

Hi @poissonvert,

Thanks for reaching out.

They are Wordpress default form fields which is called through this

 <?php
  comment_form( array(
    'comment_notes_after' => '',
    'id_submit'           => 'entry-comment-submit',
    'label_submit'        => __( 'Submit' , '__x__' )
  ) );
  ?>

Under the file x\framework\views\{ YOUR ACTIVE STACK }\wp-comments.php

This https://codex.wordpress.org/Function_Reference/comment_form would help you customizing it through hooks. And these will be helpful too https://code.tutsplus.com/articles/customizing-comments-in-wordpress-functionality-and-appearance--wp-26128, https://www.competethemes.com/blog/placeholders-comment-form-wordpress/

You’ll have to create your own customization since there is no existing template that you can edit. It’s simply using the form provided by Wordpress by default.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.