Hi,
In page \”[dwqa-submit-question-form]\”, categories and subcategories are one below the other.
However, i would like :
- categories would be marked as bold and big and could not be chosen
- and subcategories, for which one must be chosen, would be separated by a space
For example :
\”CATEGORY 1 (can\’t be chosen)
Subcategory 1
Subcategory 2
[…]\”
Is it possible ?
2 Answers
Please copy the template question-submit-form.php
at wp-content/plugins/dw-question-answer-pro
to wp-content/themes/your-theme-folder/dwqa-templates
then replace the code below from
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, ) );
to
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, 'hierarchical' => true, ) );
TY Dominic !
I have the hierarchy and it’s already better.
But is it possible to make categories impossible to be chosen ? And categories written in bold ?
Thanks.
At the moment, the plugin does not support to make categories impossible to be chosen and categories written in bold.
Please login or Register to submit your answer