I need to remove the box ‘tags’ on the question page. Instead of this, I need to add boxes named ‘Your neme’, ‘Your age’ and ‘Your sex’. How can I do it?
Hi,
To remove the Tags box on the question page, you can add the following cooe:
.dwqa-single-question .dwqa-question .dwqa-tags {
display: none;
}
Also, our plugin do not support to add boxes named ‘Your neme’, ‘Your age’ and ‘Your sex’ as you want.
Regarsd,
But in which file????
At the moment, we have released the latest version and have some change about the layout and it does not display Tag box in the question page as the old version. In this case, you can create a new question and let me know detail about your question, we will check and help you.
Hi,
I want to remove the Tags box AND the category box on the question page. How can this be done?
If you want to remove the categories and tag box in the question submit form, you can create a folder is “dwqa-templates” in the wp-content/themes folder and copy the question-submit-form.php in the templates folder of the plugin paste it into the new folder then open this file remove the line 31 to line 49:
Need to remove the following Code:
<p>
<label for="question-category"><?php _e( 'Category', 'dwqa' ) ?></label>
<?php
wp_dropdown_categories( array(
'name' => 'question-category',
'id' => 'question-category',
'taxonomy' => 'dwqa-question_category',
'show_option_none' => __( 'Select question category', 'dwqa' ),
'hide_empty' => 0,
'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ),
'selected' => isset( $_POST['question-category'] ) ? sanitize_text_field( $_POST['question-category'] ) : false,
) );
?>
</p>
<p>
<label for="question-tag"><?php _e( 'Tag', 'dwqa' ) ?></label>
<?php $tags = isset( $_POST['question-tag'] ) ? sanitize_text_field( $_POST['question-tag'] ) : ''; ?>
<input type="text" class="" name="question-tag" value="<?php echo $tags ?>" >
</p>
Please login or Register to submit your answer