Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
384 views
in Q2A Core by

If i ask a question, the title of the page that will be created will be:

What's your name? - My WebSite

I want that the title of the page is:

What's your name?

 

Is it possible to do?

Thanks

1 Answer

+1 vote
by
selected by
 
Best answer

Override(re-define) and modify head_title() function of qa-include/qa-theme-base.php on your theme.

Example:

function head_title() {
  $pagetitle=strlen($this->request) ? strip_tags(@$this->content['title']) : '';
  //$headtitle=(strlen($pagetitle) ? ($pagetitle.' - ') : '').$this->content['site_title'];
  $headtitle=strlen($pagetitle) ? $pagetitle : $this->content['site_title'];
  
  $this->output('<title>'.$headtitle.'</title>');
}
 
...