Bradley
asked 6 years ago

Hello. How can I hide the date from being displayed next to the questions and their answers? Currently it says things like “answered 7 months ago”, but I’d like that to be hidden so there isn’t any context for when the questions were asked.

2 Answers
DominicStaff
answered 6 years ago

If you want to hide date/time in the single question, you can use the following code: 

.dwqa-question-date, 
.dwqa-answer-date,
dwqa-comment-date {
     display: none
}

If you want to hide the date/time on the question list, you can go to the content-question.php file in the templates folder then find the line 25 to remove the date/time.

bradleystevens
replied 5 years ago

Hey, has something changed? Because the content-question.php file doesn’t have date/time mentioned in line 25. And if I make this change, will it disappear when I update the plugin?

bradleystevens
replied 5 years ago

And the css above didn’t work either. Nothing has worked to hide the date so far.

bradleystevens
replied 5 years ago

This CSS isn’t working. When I open a question, it still says ‘asked/ replied/ answered 9 months ago’. That’s the last part I’m trying to hide. Any ideas?

DominicStaff
answered 5 years ago

You can create the “dwqa-templates” folder in your theme folder then create the content-question.php file in the “dwqa-template” folder then add the following code to the file. Your code: http://snippi.com/s/0ro1pqp
We have helped you remove the Time/date. When you custom in the “dwqa-templates” folder, all the custom will save after update the plugin. 

bradleystevens
replied 5 years ago

That’s been causing PHP errors and won’t load. Says it needs to be done by FTP. Though, I already have a content-question.php file in that folder within the theme, so I was just trying to delete the code and replace it. Any suggestions?

Dominic Staff
replied 5 years ago

Yes, In this case, you can send me your FTP account, I will help you resolve it.

bradleystevens
replied 5 years ago

Hi Dominic, are you still able to help me? I’m lost. I already do have a content-question.php file in the dwqa-templates folder in the theme folder. So do I need to delete the old content-question.php and replace it with this new one?

Dominic Staff
replied 5 years ago

Yes, just replace the old code with the new code that I provided in the previous answer.
If you still face their issue, you can create the following path folder: dwqa-templates/styles/default
then add your file to the default folder.

bradleystevens
replied 5 years ago

It worked! I did that with FTP and it worked. Thanks Dominic! I have another question following up on another thread, so I’ll post it there

Dominic Staff
replied 5 years ago

Yes, We will check and help you resolve it.

Powered by DW Question & Answer Pro