Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
3.2k views
in Q2A Core by
Q2A version: 1.5.3

2 Answers

0 votes
by
Find qa-lang-main in the includes folder and locate this line:

'recent_qs_as_title' => 'Recent questions and answers',

Change it to :

'recent_qs_as_title' => '',
by
That is nice. Thanks. But wouldnt a better way be to override this value in some other file ( like qa-theme.php ) ? Can that be done ?
0 votes
by

 

Here is a workaround. But can anyone confirm this is the right approach ?

 

In qa-theme.php, I overwrote page_title_error() as

 

 

                function page_title_error()
                {
                        $favorite=@$this->content['favorite'];
 
                        if (isset($favorite))
                                $this->output('<FORM '.$favorite['form_tags'].'>');
 
                        if ($_SERVER['QUERY_STRING'] == '')
                                $this->output('<H1 class="qa-main-header">');
                        else
                                $this->output('<H1>');
                        $this->favorite();
                        $this->title();
                        $this->output('</H1>');
 
                        if (isset($this->content['error']))
                                $this->error(@$this->content['error']);
 
                        if (isset($favorite))
                                $this->output('</FORM>');
                }
 
Then set display:none to the qa-main-header. This works. But will this affect any thing else ???
 
Thanks
...