Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
300 views
in Q2A Core by
Hi,

My requirement is that i need to remove the Questions/Unasnwered/Tags/Users/Ask Question Pane from the page when user needs to type a question.

Also i need to remove the MyAcoount ,Logout links which are on the top along with the search box.

Can somebody please let me know which file i need to modify as i have no experience workign on php

Thanks

1 Answer

+2 votes
by
You should be able to do this with an advanced theme: http://www.question2answer.org/advanced.php

In your qa-theme.php file, look for the function "nav_list". The contents currently look like this:

      $this->output('<ul class="qa-nav-'.$navtype.'-list">');
      foreach ($navigation as $key => $navlink)
        $this->nav_item($key, $navlink, $navtype);
      $this->output('</ul>');

Replace it with this:

    if ( $this->template != 'ask' )
    {
      $this->output('<ul class="qa-nav-'.$navtype.'-list">');
      foreach ($navigation as $key => $navlink)
        $this->nav_item($key, $navlink, $navtype);
      $this->output('</ul>');
    }
by
Thank you very much!!! it worked !!!
...