Frank Booth
asked 10 years ago

Hi Dom / BigHug,
I need to remove the category reference in questions list. ( the header class where it has: category: “Link”). I only want users to filter using the filter bar.
Thanks for your help! I really appreciate it 🙂

Frank Booth
replied 10 years ago

Actually, I just need to remove the link reference. I still want to display what the category is within the header but no link.

1 Answers
answered 10 years ago

To resolve this issue, you can do as the following:
1. Open the content-question.php file in the folder path “wp-content\plugins\dw-question-answer\inc\templates\default”. Find the line 16.
Replace the following code:

<?php echo get_the_term_list( $post_id, 'dwqa-question_category', '&nbsp;&nbsp;<strong>&sdot;</strong>&nbsp;&nbsp;<span>Category: ', ', ', '</span>' ); ?>    

With new Code:

<?php echo get_the_term_list( $post_id, 'dwqa-question_category', '&nbsp;&nbsp;<strong>&sdot;</strong>&nbsp;&nbsp;<span class="dwqa-category">Category: ', ', ', '</span>' ); ?>    

2. Add the following code to the style.css file

.dwqa-list-question .dwqa-meta .dwqa-category {
    cursor: default;
    pointer-events: none;


Powered by DW Question & Answer Pro