asked 4 years ago

I just want to delete the email and username requirement to answer my questions, that’s it.

1 Answers
answered 4 years ago

At the moment, you can not remove these fields. The fields specify that an input field must be filled out before submitting the form.
In this case, you can open the answer-submit-form.php in the dw-question-answer-pro/templates/styles/default folder then find the line 20 to line 29 and replace it with the following code:

        <p style="display: none;">
            <label for="_dwqa_anonymous_email"><?php _e( 'Your Email', 'dwqa' ) ?></label>
            <?php $email = isset( $_POST['_dwqa_anonymous_email'] ) ? $_POST['_dwqa_anonymous_email'] : ''; ?>
            <input type="email" class="dwqa-question-anonymous-email" name="_dwqa_anonymous_email" value="[email protected]" readonly>
        <p style="display: none;">
            <label for="_dwqa_anonymous_name"><?php _e( 'Your Name', 'dwqa' ) ?></label>
            <?php $name = isset( $_POST['_dwqa_anonymous_name'] ) ? $_POST['_dwqa_anonymous_name'] : ''; ?>
            <input type="text" class="dwqa-question-anonymous-name" name="_dwqa_anonymous_name" value="Anonymous" readonly>
Powered by DW Question & Answer Pro