• Hello!

    <form action="https://svetmarii.org/wp-comments-post.php" method="post" id="commentform" class="comment-form">
    </form><form action="https://svetmarii.org/wp-comments-post.php" method="POST" enctype="multipart/form-data" id="attachmentForm" class="comment-form" novalidate=""><p class="comment-notes">...

    Why so displays?

Viewing 1 replies (of 1 total)
  • It’s a hack because there is no good way to add multipart/form-data (which is necessary for file uploads) to the default WordPress comment form.

    You could edit the plugin and comment out the add_action('comment_form_top' to disable this. Then, add the multipart/form-data attribute using jQuery:

    <script>jQuery('#commentform')[0].encoding = 'multipart/form-data';</script>

    • This reply was modified 5 years, 7 months ago by chadrew.
Viewing 1 replies (of 1 total)
  • The topic ‘Two forms instead of one’ is closed to new replies.