Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
487 views
in Q2A Core by
Can I hide the search bar in the sidebar?
Q2A version: 1.7.4

2 Answers

+1 vote
by

If you are using SnowFlat theme than do following

In qa-theme/SnowFlat folder find and open qa-theme.php file

Around line #282 find below code

public function sidepanel()
{
  // remove sidebar for user profile pages
  if ($this->template == 'user')
    return;
  $this->output('<div id="qam-sidepanel-toggle"><i class="icon-left-open-big"></i></div>');
  $this->output('<div class="qa-sidepanel" id="qam-sidepanel-mobile">');
  $this->qam_search();
  $this->widgets('side', 'top');
  $this->sidebar();
  $this->widgets('side', 'high');
  $this->nav('cat', 1);
  $this->widgets('side', 'low');
  if (isset($this->content['sidepanel']))
    $this->output_raw($this->content['sidepanel']);
  $this->feed();
  $this->widgets('side', 'bottom');
  $this->output('</div>', '');
}

Remove or comment  $this->qam_search(); within the function. So finally you will get code as below

public function sidepanel()
{
  // remove sidebar for user profile pages
  if ($this->template == 'user')
    return;
  $this->output('<div id="qam-sidepanel-toggle"><i class="icon-left-open-big"></i></div>');
  $this->output('<div class="qa-sidepanel" id="qam-sidepanel-mobile">');
  /*$this->qam_search(); disabled search*/
  $this->widgets('side', 'top');
  $this->sidebar();
  $this->widgets('side', 'high');
  $this->nav('cat', 1);
  $this->widgets('side', 'low');
  if (isset($this->content['sidepanel']))
    $this->output_raw($this->content['sidepanel']);
  $this->feed();
  $this->widgets('side', 'bottom');
  $this->output('</div>', '');
}
0 votes
by
yes you can , just use the jQuery :-)

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.

Categories

...