Converting the search field to a module position

This tutorial applies to the following templates:

  • Amelia
  • Juliet
  • Kaylee
  • Renita
  • Kinvara
  • Colette
  • Maya
  • Grace
  • Magnolia
  • Harmony
  • Verona
  • Kodaline
  • London
  • Hannah
  • Elvira
  • Valencia
  • Serenity
  • Chelsea
  • Scarlett
  • Trinity
  • Willow
  • Caitlin
  • Nadia
  • Beaumont
  • Ashley
  • Fedora
  • Artisan
  • Creative
  • Revolve
  • Madison
  • Florence
  • Vitality
  • Enterprise
  • Boutique
  • Stockholm
  • Alexis
  • Central
  • Boss
  • Journal
  • Enlighten
  • LifeStyle
  • Habitat
  • Grafik
  • Brooklyn
  • Cashmere
  • Virtuoso
  • Polaris
  • Calibra
  • Renovate
  • PianoForte
  • Kindle
  • LetterPress
  • Impulse
  • Nocturne
  • Metropolis
  • Clarity
  • Substance
  • Privilege
  • Resonate
  • Arkadia
  • Presence
  • Evolution
  • Catalyst
  • Executive
  • Bordeaux
  • Novation
  • Specialize
  • Chimera
  • Avenue
  • Rendezvous

In some of more recent template release you will find that rather than using a module position to display a search field we have instead integrated it as part of the template. In some cases this may not be suitable as you may wish to display a different type module in the same area as the search field. Following we will detail for you how to covert this search field to a module position.

Locate the following in your templates header.php (../templates/[YourTemplate]/php/layouts/header.php)..

<?php if($search_onoff == "1") : ?>
    <div id="search">
            <?php echo $search; ?>
    </div>
<?php endif; ?>

Replace this code with the following..

<div id="search">
<jdoc:include type="modules" name="search" />
</div>

You'll find the position won't be listed in the positions dropdown in your module settings however this field is editable so simply type in the position search rather than trying to select it from the list.

  • Tuesday, 13 August 2013

Join Our Newsletter




We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.