Mahdi Mirafshar
asked 6 years ago

hi, I need a css code to hide timestamp of questions and answers on question lists or single question page and even related widgets. your answer is appreciated.  

1 Answers
DominicStaff
answered 6 years ago

If you want to remove the timestamp, you can do as the following step.

– Go to the wp-content/themes/your-theme folder from FTP/Cpanel/localhost, create a new folder named “dwqa-templates”.
– Navigate to the /wp-content/plugins/dw-question-answer/templates, select the file you want to override the style, then copy the file into /wp-content/themes/your-theme/dwqa-templates.
– Copy/paste the content-question.php, content-single-answer.php, content-single-question.php and content-comment.php file to the dwqa-templates folder
– Find the following code: 

<?php printf( _x( 'replied %1$s ago', '%s = human-readable time difference', 'dwqa' ), human_time_diff( get_comment_time( 'U' ), current_time( 'timestamp' ) ) ); ?>

And remove this code: 

%4$s asked %5$s ago
Powered by DW Question & Answer Pro