Joomla : Templates and Site Design    Editing index.php  

The search module is loaded by Joomla into a position called "user5". (You can check the position of any module by looking at the Site Module List demonstrated in a previous tutorial).

  1. Here's where user5 used to be (it is still there, but hidden).
  2. Let's create a new div element to hold user5 and position it over the logo.

We'll use this code:

  <div style="position:absolute;top:20px;margin-left:610px;height:0px;">
<?php mosLoadModules ( 'user5' ); ?>
</div>

This code will creates a DIV element (basically just an empty rectangle) and positions it. Then within that DIV element we tell Joomla to load the modules that are in the "user5" position.

 


8 of 12