Yiannis Pahitas
asked 8 years ago

Hi,
To start off, congrats on a great plugin!
I am building a website were users can ask questions to an expert (it will mostly be one question, one answer). So I would like to strip it down to the bare essentials to make the interface as simple as possible. I would like to remove the voting functionality, the different status (resolved etc), who it was asked for and possibly others. I ve circled in red what I want to be removed (see pictures).
I’ve opened up the code but I can’t figure it out easily. Can this be done and could you point me in the right direction?
https://dl.dropboxusercontent.com/u/209896344/remove-functionality2.jpg
https://dl.dropboxusercontent.com/u/209896344/remove-functionality.jpg

4 Answers
DominicStaff
answered 8 years ago

To resolve this issue, below is our instruction:
Firstly, follow the jetpack’s guideline in the Blog article on how to use Edit CSS here. http://cmspioneer.com/designwall/blog/using-jetpack-custom-css-for-your-wordpress-site/
Then add the code to the Edit Css.

.dwqa-container .dwqa-single-question .dwqa-vote { display: none; }
.dwqa-container .dwqa-single-question .dwqa-favourite, .dwqa-container .dwqa-single-question .dwqa-stick-question { display: none; }
.dwqa-container .dwqa-single-question .dwqa-author .author, .dwqa-container .dwqa-single-question .dwqa-author .dwqa-date { display: none; }
.dwqa-container .dwqa-single-question .dwqa-author .author, .dwqa-container .dwqa-single-question .dwqa-author .avatar { display: none; }
.dwqa-container .dwqa-single-question .dwqa-footer .dwqa-current-status { display: none; }
.dwqa-container .dwqa-list-question .filter .status { display: none; }
.dwqa-container .dwqa-list-question .filter-bar .order { display: none; }
.dwqa-container .dwqa-list-question .dwqa-footer-meta { display: none; }
.dwqa-container .dwqa-list-question .filter { padding: 29px 22px; }

Hope this helps !

Yiannis Pahitas
replied 8 years ago

thank you, worked like a charm! 🙂

Yiannis Pahitas
replied 8 years ago

Also, If I want to edit it further where can I find the different elements/objects of the plugin? for example .dwqa-list-question .filter .status.

Is everything under wp-content\plugins\dw-question-answer\assets\css ?

DominicStaff
answered 8 years ago

Of course ! you can open the style.css file in the folder path “\wp-content\plugins\dw-question-answer\assets\css”.
Also, you can use FireBug.

Yiannis Pahitas
replied 8 years ago

thank you 🙂

Cezar Giosan
answered 8 years ago

Hello all,
I have a related question: If I only want the number of views and answers displayed but not the number of votes, what line of code should I edit?
 
Is it this:

.dwqa-container .dwqa-list-question .filter-bar .order { display: none; } 

changed to this?

.dwqa-container .dwqa-list-question .filter-bar .order { display: views; answers; }

Thank you in advance!

DominicStaff
answered 8 years ago

You can add the following code to the style.css file:

.dwqa-list-question .filter-bar .order .most-votes { display: none; }
.dwqa-list-question .dwqa-vote { display: none; }

Hope this helps !

Cezar Giosan
replied 8 years ago

This works perfectly, thank you Dominic!

Cezar Giosan
replied 8 years ago

If I want for the number of comments to show, what line of code should I use? The default now is questions/answers/votes. How can I make it: questions/answers/comments? (both filter and the little square that displays the number).

Thanx!

Dominic Staff
replied 8 years ago

Unfortunately, Our DW Q&A plugin does not support this issue.

Powered by DW Question & Answer Pro