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

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

How to change title of question pages?

0 votes
I want to change title of question and answer pages but i don't know where can i do it. For example i want to add a fixed sentence to the end of title of question pages. Can someone please help me? Now at the end of title of question pages, the title of main website is displaying. I want to add something else to it too. How can i do it? I found some similar questions in this community but they couldn't help me so i opened this question.
asked Nov 8, 2011 in Q2A Core by mobi

1 Answer

+1 vote
You need a custom theme - http://question2answer.org/themes.php (I think I need this URL permanently on my clipboard). The function you'd need to override is head_title()
answered Nov 8, 2011 by DisgruntledGoat
edited Nov 11, 2011 by DisgruntledGoat
Can you please tell me which file should be edited?
Have you followed the instructions for an advanced theme, in the link I posted? Where did you get to?
you can also just set "@$this->content['title'] to whatever you want, somewhere in like doctype() or html() - that will affect both the <head><title> tag, and the <h2> in-page title.