How to add Position in Joomla 2.5 Template

By | 28/01/2014

Joomla 2.5x works with position. Modules can be assigned to a position of the page. But some Themes of joomla 2.5 will not have enough position that user needs. So custom positions can be added to the themes. I have figured a way for How to Add position in Joomla 2.5. This is a Simple and easy process.

The 2 files we need to make some changes are

templateDetails.xml” and “index.php

At first we need to add a position in Joomla 2.5 template

templateDetails.xml

Search for “<positions>” in templateDetails.xml

Select Code
1
2
3
</p>
<p>custom_postion_name</p>
<p>

Add the line before the “</positions>

Now, Place the position in the index.php

Select where position has to be displayed and paste the following code.
“index.php”

Select Code
1
2
3
4
5
6
<br />
 <?php if ($this->countModules('position_name'))<br />
{ ?></p>
<div class="custom_postion_div_name"></div>
<p><?php
 } ?><br />

After completing these steps, Just Hard reload the browser or Relogin into the Joomla Admin panel.
Check the position has loaded in by “index.php?tp=1” in the site

frontend Url.

Post By Praveen (38 Posts)

Website: →

Connect

About Praveen

Praveen S has written 38 post in this blog.

One thought on “How to add Position in Joomla 2.5 Template

Leave a Reply