Cuelogic Blog Icon
Cuelogic Career Icon
Home > Blog > All > How to add positions in Joomla template

How to add positions in Joomla template

In joomla template all positions where one can insert a module is depends on template which you are using. You can add custom positions in that any template

 

I’ll try to explain you how to insert custom position in Joomla template

 

Add custom positions in Joomla 2.5 template

 

Code to insert

  • Open the index.php file of the Template you wish to edit
  • Locate the place in the Template where you wish to put the new position.
  • Insert following line
<jdoc:include type="modules" name="newposition"   /> 
  • Open the Template’s TemplateDetails.xml file and locate the
<positions></positions> Start and end tags 
  • Then add
<position>newposition</position> 
  • Example
<positions>

           <position>debug</position>
           
    	   <position>position-0</position>

           <position>position-1</position>
           
           <position>position-2</position>
           
           <position>position-3</position>

           <position>position-4</position>
           
           <position>position-5</position> 
          
           <position>position-6</position>
           
           <position>position-7</position>
           
           <position>position-8</position>
           
           <position>position-9</position>
           
           <position>position-10</position>

           <position>position-11</position>
           
           <position>position-12</position>
           
           <position>position-13</position>
          
           <position>position-14</position>
           
           <position>position-15</position>

           <position>newposition</position>
  
	   </positions>