waqas mumtaz
asked 10 years ago

hey, i want to show unanswered question on a seperate page and want to disable the Status: (filter). please help me out as soon as posile 

2 Answers
Guru
answered 10 years ago

It would be a very special requirement to show the only unanswered questions.
May be this can satisfy your requirement, as I don’t think there is shortcode for that yet, but admins can provide you an answer for that.
You can use the following ?status=open as in the example below to get only unanswered questions.
http://domain.com/dwqa-questions/?status=open
You can then use css to hide the filter:
.dwqa-container .dwqa-list-question .filter .status {

display: none;

}
 
However, this will hide the filter from the normal question listing page too.
 
Hope this is a starting point.
 
Regards

DominicStaff
answered 10 years ago

Dear Guru !
Thanks for your help. Hello Waquas !
Please try out the solution that Guru provided above.
First of all, you will copy the  permalink of the Open status as Guru mentioned: http://domain.com/dwqa-questions/?status=open
Then log in to Dashboard > Menu > Custom Links, you need to locate the pane titled Link on the left hand side, paste your permalink into the URL text box to specify what the tab will say, and then click “Add to Menu” button. After adding a menu, You can add the following code to the style.css file.

 .dwqa-container .dwqa-list-question .filter {
   padding: 30px 20px;
}
.status {
    display: none !important;
}

Hope this helps !

Guru Ghantaal
replied 10 years ago

Thankx @Dominic, I missed the padding bit. Also @wikki you can increase the padding if the button is not displaying properly!

Powered by DW Question & Answer Pro