Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #517543

    Hi
    I use WPML on my ENG and FR website (www.impact.crescendo.com). WPML support helped me resolve an issue where the reply form used with Enfold could not be translated. Here’s how they help me fix the problem and since perhaps you could think about having this fix withing the theme ofr others, I thought to share the fix.

    The Enfold theme was utilizing comment_form() which is a native WordPress function and should have switched the language to French for ‘Comment’. For some reason, this was not the case.
    The steps I took to resolve:
    – Copied comments.php from the enfold theme and place it in the enfold-child theme
    – Commented out line 164, comment_form();
    – Added the following, starting at line 166
    $comments_args = array(
    ‘comment_field’ => ‘<p class=”comment-form-comment”><label for=”comment”>’ . __( ‘Comment’, ‘WordPress’ ) . ‘</label><br /><textarea id=”comment” name=”comment” aria-required=”true”></textarea></p>’,
    );
    comment_form($comments_args);

    Much appreciated
    Lyse

    #517697

    Hey tremblayly!

    Added to our team github for further updates!
    Thanks a lot for your time to provide that! :)

    Regards,
    Basilis

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Post template – reply form’ is closed to new replies.