How to add search bar to home topbar instead in dropdown menu.

Darry James Posted in Beginning Developers 8 years ago

Greetings!
Please, I would like to add my search bar to my topbar, so that it will be visible to all users after they logged in without being hidden in Navigation Menu!
Please how can I implement that?
I also found it difficult to locate where the topbar file is hidden. I would have done it myself.
Just simply need to find the directory where topbar were hidden.
Would be more happy if my question will be answered appropriately!
Thanks In Advance!

Replies
Indonesian Arsalan Shah Replied 8 years ago

You need to add following code in the search bar file :

<?php echo ossn_view_form('search', array( 'component' => 'OssnSearch', 'class' => 'ossn-search', 'autocomplete' => 'off', 'method' => 'get', 'security_tokens' => false, 'action' => ossn_site_url("search")), false);

Add the above code where you wanted to show search bar in topbar. You can find topbar file in goblue\plugins\default\theme\page\elements\topbar.php

Premium Version

Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.

$199 (Life Time)
Learn More

Other Questions