By default, the Joomla! template available module positions. However, in some cases you want to add some other module positions. In this tutorial we will create a module position located just below the main text of the site.

Check the website template that you are using

First, you should check the website template that you are using. This can be found in the Joomla 2.5 Administrator -> Extensions -> Template Manager. This template is marked by a yellow star.

Read more about: Get to know the template in Joomla!

Adding a module position

Open templates/Your_Template_Name/index.php

(Replace Your_Template_Name with the actual name of your Joomla 2.5 template)

You can add this code where you want to display your module.

<jdoc:include type="modules" name="position-16" />

Tip: You can replace position-16 with any name as you want.

Or Wrapping your position in DIV tag to apply CSS for this module:

<div id="your-position-id">
     <jdoc:include type="modules" name="position-16" />
</div>

Save the changes.

Define new module position

Open templates/Your_Template_Name/templateDetails.xml

(Replace Your_Template_Name with the actual name of your Joomla 2.5 template)

Find:

</positions>

Before add:

<position>position-16</position>

(Replace position-16 with the name that was created in the index.php file) 

Save the changes.

Template language pack

If your template supports language packs, you can add to comment for this position as follows:

TPL_YOUR_TEMPLATE_POSITION_POSITION-16="New position Name"

Save the changes.

Now, you can go to the Joomla 2.5 Administrator and change the position of a chosen module to the new position.

You can apply this tutorial to add another module position.