• mjaitly123

    (@mjaitly123)


    Hi

    I am using this plugin and have 2 queries

    1) How do I remove the comments section (it should not be visible). I want only the question and answer.

    2) I do not want even the title box to appear but the user should put in his question in the main body itself. Is there any way I can remove the title. If the title cannot be removed I would want to remove the main body so that the question can be put in the title box itself.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author DesignWall

    (@designwall)

    Hi,
    1/ you can configure in the Dashboard > Questions > Settings Permission tab to disable all the user role can submit and read the comment.
    2/ If you want to remove the title box, you can go to the Handle.php file then find the line 431 and remove it.

    
    if ( empty( $_POST['question-title'] ) ) {
    dwqa_add_notice( __( 'You must enter a valid question title.', 'dwqa' ), 'error' );
    return false;
    }
    

    And then go to the question-submit-form.php file in the plugins/dw-question-answer/templates folder find the line 18 and remove it:

    
    		<p class="dwqa-search">
    			<label for="question_title"><?php _e( 'Title', 'dwqa' ) ?></label>
    			<?php $title = isset( $_POST['question-title'] ) ? $_POST['question-title'] : ''; ?>
    			<input type="text" data-nonce="<?php echo wp_create_nonce( '_dwqa_filter_nonce' ) ?>" id="question-title" name="question-title" value="<?php echo esc_attr( $title ) ?>" tabindex="1">
    		</p>

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Removing Comments, etc.’ is closed to new replies.