This object is in archive! 

Search box placement problem

Archived Annevar Media, LLC 9 years ago

I am using 2.3.11.


After taking a day to create my own theme, I noticed something strange, the placement, or lack, of the search box. I am referring to the search form in the #top-bar of the page.


I notice that it is never displayed on KB articles. I did some hunting around in the Knowledge Base module, but was not able to make any changes.


The search form is displayed on the main KB page, the KB category pages, but it vanishes when you are on a KB article. I do not want it to vanish.


Then I noticed something when I am signed out of the application. There is a search box not only in the #top-menu but also right next to the New Response button. Even on KB articles! But as soon as I click Login, that search box disappears, too.


So, in short, I want

  • the search box in #top-menu always
  • the search box in #nav-area never

How to accomplish this?

Replies (1)

photo
1

Hello,

You may remove it from file: /application/templates/layout/header.phtml

Find the following code:

  1. <?php if ($this->loggedUser->isGuest()): ?>
  2. <?php echo $this->searchForm ?>
  3. <?php endif; ?>

then comment (with /* <code> */) or remove it.

Also, you can override /application/templates/layout/header.phtml template file in your custom theme without search form.

Replies have been locked on this page!