Jump to content

Move search module


Recommended Posts

Add to blocksearch.php this code

    function hookHome($params)
   {
       global $smarty;
       $smarty->assign('ENT_QUOTES', ENT_QUOTES);
       $smarty->assign('ajaxsearch', intval(Configuration::get('PS_SEARCH_AJAX')));
       return $this->display(__FILE__, 'blocksearch-top.tpl');
   }


And then go to Back Office >> Modules >> Positions And transplant Search module to homepage, and move it to first place in list.

Link to comment
Share on other sites

Go to Back Office >> Modules >> Positions and click on Transplant module (image 1).
Then next to Module from drop-down choose Quick search block and next to Hook into choose Homepage content.(image 2)
Click on save .

27189_6x1h1nBos1ZvzagoT0Xa_t

27191_Izbh3mLnwAymskm5e5xT_t

Link to comment
Share on other sites

Now is ok, work good..
But now i have last question, when i click anyone word to search, after show the results, results in the search box disappears.
Have possibility to make this search box always available, even after showing the results?

27226_CvRobbLGqO0hZY3Elbh6_t

27227_ixlWAGq0OE6O0w8skzLW_t

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...