I’m trying to get some styling done on the comments areas of my installation of DWQA. I found that in the comments, paragraph tags are not added. It makes it a little bit harder to style this way and lends itself only to short comments. Longer comments get run together because there is no paragraphing.
As part of this support request, I’m going to add a long comment to this question to illustrate it. I want to get some separation between paragraphs but am not able to.
Apologies for the delay in replying to you,
You can find file in directory: your_domain\wp-content\plugins\dw-question-answer\inc\action.php
Replace the following code:
'comment_content' => isset( $_POST['content'] ) ? wp_kses_data( $_POST['content'] ) : '',
With new code:
'comment_content' => isset( $_POST['content'] ) ? nl2br($_POST['content']):'',
Paragraph of your comment will have line break like you want.
Hope this helps !
Please login or Register to submit your answer