Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

I want to hide asked by and answered by

+1 vote
97 views
asked Jul 6 in Themes by Zeeshan
edited Jul 6 by Zeeshan
"asked by username" and "answered by username"
How to hide ?

1 Answer

0 votes
answered Jul 24 by JackSiro
selected Jul 25 by Zeeshan
 
Best answer

To do that you have to modify your theme with the code below:

public function post_meta_who($post, $class)

{

if ($this->template == 'qa') return; //hide who posted in question list only

if (isset($post['who'])) {

$this->output('<span class="' . $class . '-who">');

if (strlen(@$post['who']['prefix']))

$this->output('<span class="' . $class . '-who-pad">' . $post['who']['prefix'] . '</span>');

if (isset($post['who']['data']))

$this->output('<span class="' . $class . '-who-data">' . $post['who']['data'] . '</span>');

if (isset($post['who']['title']))

$this->output('<span class="' . $class . '-who-title">' . $post['who']['title'] . '</span>');

if (isset($post['who']['points'])) {

$post['who']['points']['prefix'] = '(' . $post['who']['points']['prefix'];

$post['who']['points']['suffix'] .= ')';

$this->output_split($post['who']['points'], $class . '-who-points');

}

if (strlen(@$post['who']['suffix']))

$this->output('<span class="' . $class . '-who-pad">' . $post['who']['suffix'] . '</span>');

$this->output('</span>');

}

}

Go to your default theme directory and paste the code above in the qa-theme.php file. Good luck with that!

commented Jul 24 by Zeeshan
Thanks man.....
commented Jul 24 by JackSiro
if it solved your problem do select my answer
...