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
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>'); }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.