Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Change Search module trigger

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Is there a way to display a search box in the "Search" module position, rather than the search icon that is shown now, that triggers the search module in the panel position?

Thank you!
  • sarahhumphrey's Avatar
  • sarahhumphrey
  • LIfetime Developer - Big Bamboo
  • 37 posts
  • Karma: 1
The administrator has disabled public write access.
I'll need to check on this and get back to you

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi,

You would need to manually remove the code for the icon that triggers the search box in the file /tpls/blocks/nav.php in the template folder to remove the code for the trigger and replace it with the part that loads the module.
<?php if ($this->countModules('search')) : ?>
			    <div id="search-nav" style="display:none">
			      <jdoc:include type="modules" name="search" style="raw" />
			    </div>
			    <!-- //Above Content -->
			    <?php endif ?>

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
The following user(s) said Thank You: sarahhumphrey

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers