Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
366 views
in Q2A Core by
<meta name="description" content="where this comes from?">

1 Answer

+2 votes
by
selected by
 
Best answer

The tag itself is output by the base theme:

https://github.com/q2a/question2answer/blob/4fce0eb2390f56b645dad375d1d81e9f91a97e69/qa-include/qa-theme-base.php#L267

So in order to override this value you could either replace the value of $this->content['description'] in the initialize() function of your custom theme or override the whole head_metas() function there too.

Currently the value is set based on the initial characters of the content of the question (if in the context of the question) or based on the home description (if in the home page):

https://github.com/q2a/question2answer/blob/4fce0eb2390f56b645dad375d1d81e9f91a97e69/qa-include/qa-page.php#L530
https://github.com/q2a/question2answer/blob/4fce0eb2390f56b645dad375d1d81e9f91a97e69/qa-include/pages/question.php#L213

...