{"id":1592,"date":"2012-07-20T15:19:24","date_gmt":"2012-07-20T15:19:24","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2012\/07\/20\/add-new-position\/"},"modified":"2021-08-16T23:39:11","modified_gmt":"2021-08-17T03:39:11","slug":"add-new-position","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/","title":{"rendered":"How to add a new position to a Joomla 2.5 Template"},"content":{"rendered":"<p>While reviewing the <a href=\"\/support\/website\/working-with-images-in-premium-web-builder\/\">PHP code in the Joomla 2.5 Beez2 template<\/a>, we come across the following code:<\/p>\n<pre class=\"code_block\">&lt;jdoc:include type=\"modules\" name=\"position-0\" \/&gt;<\/pre>\n<p>The code above defines a new position within a template, in this case position-0. If you want to add a new position to your template, you\u2019ll need to use code similar to the above.<\/p>\n<p>What we\u2019re going to do now is add a new position to our template, and we will name it position-xyz.<\/p>\n<p class=\"alert\"><strong>Please note:<\/strong><br>\nIf you would like to add positions to your Joomla 2.5 template, please make sure that you already know how to <a href=\"\/support\/edu\/joomla\/joomla-2-5\/how-to-view-module-positions\/\">view where the current modules positions are<\/a> and you know how to <a href=\"\/support\/edu\/joomla\/joomla-2-5\/edit-template\/\">edit your template<\/a>. If you are not familiar with HTML \/ CSS, this may be a difficult task for you.<\/p>\n<p><strong>Adding a new position to a Joomla 2.5 template:<\/strong><\/p>\n<ol class=\"article_list\">\n<li>\n<h2>Update your template\u2019s index.php file<\/h2>\n<p>To add our new position, position-xyz, we\u2019ll add the following code to our template\u2019s index.php file.<\/p>\n<pre class=\"code_block\">&lt;div style='border:1px solid #000; padding:2px;'&gt;\n        &lt;jdoc:include type=\"modules\" name=\"position-xyz\" \/&gt;\n&lt;\/div&gt;<\/pre>\n<\/li>\n<li>\n<h2>Update your template\u2019s templateDetails.xml file<\/h2>\n<p>Your template\u2019s templateDetails.xml file includes a listing of all positions available within the template. After updating our index.php file, we now need to update our templateDetails.xml file. The code highlighted below shows the updates that we made:<\/p>\n<pre class=\"code_block\">&lt;positions&gt;\n    &lt;position&gt;debug&lt;\/position&gt;\n    &lt;position&gt;position-0&lt;\/position&gt;\n    &lt;position&gt;position-1&lt;\/position&gt;\n    &lt;position&gt;position-2&lt;\/position&gt;\n    &lt;position&gt;position-3&lt;\/position&gt;\n    &lt;position&gt;position-4&lt;\/position&gt;\n    &lt;position&gt;position-5&lt;\/position&gt;\n    &lt;position&gt;position-6&lt;\/position&gt;\n    &lt;position&gt;position-7&lt;\/position&gt;\n    &lt;position&gt;position-8&lt;\/position&gt;\n    &lt;position&gt;position-9&lt;\/position&gt;\n    &lt;position&gt;position-10&lt;\/position&gt;\n    &lt;position&gt;position-11&lt;\/position&gt;\n    &lt;position&gt;position-12&lt;\/position&gt;\n    &lt;position&gt;position-13&lt;\/position&gt;\n    &lt;position&gt;position-14&lt;\/position&gt;\n    &lt;position&gt;position-xyz&lt;\/position&gt;\n&lt;\/positions&gt;<\/pre>\n<\/li>\n<li>\n<h2>Test the changes!<\/h2>\n<p>If the changes were made successfully, use the <a href=\"\/support\/edu\/joomla\/joomla-2-5\/how-to-view-module-positions\/\">template previewer<\/a> on your template. In our example, we added position-xyz at the very top of the template. You can see it was added successfully in the screenshot below:<br>\n<a href=\"\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"982\" height=\"702\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif\" class=\"optimized-lcp-image\" alt=\"position-xyz\" loading=\"eager\" fetchpriority=\"high\" sizes=\"(max-width: 768px) 100vw, 768px\"><\/a><\/p>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>While reviewing the PHP code in the Joomla 2.5 Beez2 template, we come across the following code: &lt;jdoc:include type=&#8221;modules&#8221; name=&#8221;position-0&#8243; \/&gt; The code above defines a new position within a template, in this case position-0. If you want to add a new position to your template, you\u2019ll need to use code similar to the above.<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/\"> Read More ><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4403,82],"tags":[2113],"class_list":["post-1592","post","type-post","status-publish","format-standard","hentry","category-joomla","category-joomla-2-5","tag-joomla-v2-5"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to add a new position to a Joomla 2.5 Template | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In the following Joomla 2.5 template tutorial, we&#039;ll show you how to add a new position to your template.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add a new position to a Joomla 2.5 Template | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In the following Joomla 2.5 template tutorial, we&#039;ll show you how to add a new position to your template.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-20T15:19:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T03:39:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif\" \/>\n<meta name=\"author\" content=\"Brad Markle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brad Markle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/\"},\"author\":{\"name\":\"Brad Markle\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\"},\"headline\":\"How to add a new position to a Joomla 2.5 Template\",\"datePublished\":\"2012-07-20T15:19:24+00:00\",\"dateModified\":\"2021-08-17T03:39:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/\"},\"wordCount\":257,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif\",\"keywords\":[\"Joomla v2.5\"],\"articleSection\":[\"Joomla\",\"Joomla 2.5\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/\",\"name\":\"How to add a new position to a Joomla 2.5 Template | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif\",\"datePublished\":\"2012-07-20T15:19:24+00:00\",\"dateModified\":\"2021-08-17T03:39:11+00:00\",\"description\":\"In the following Joomla 2.5 template tutorial, we'll show you how to add a new position to your template.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif\",\"width\":982,\"height\":702,\"caption\":\"position-xyz\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add a new position to a Joomla 2.5 Template\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\",\"name\":\"Brad Markle\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to add a new position to a Joomla 2.5 Template | InMotion Hosting","description":"In the following Joomla 2.5 template tutorial, we'll show you how to add a new position to your template.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/","og_locale":"en_US","og_type":"article","og_title":"How to add a new position to a Joomla 2.5 Template | InMotion Hosting","og_description":"In the following Joomla 2.5 template tutorial, we'll show you how to add a new position to your template.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2012-07-20T15:19:24+00:00","article_modified_time":"2021-08-17T03:39:11+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif","type":"","width":"","height":""}],"author":"Brad Markle","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Brad Markle","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/"},"author":{"name":"Brad Markle","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf"},"headline":"How to add a new position to a Joomla 2.5 Template","datePublished":"2012-07-20T15:19:24+00:00","dateModified":"2021-08-17T03:39:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/"},"wordCount":257,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif","keywords":["Joomla v2.5"],"articleSection":["Joomla","Joomla 2.5"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/","name":"How to add a new position to a Joomla 2.5 Template | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif","datePublished":"2012-07-20T15:19:24+00:00","dateModified":"2021-08-17T03:39:11+00:00","description":"In the following Joomla 2.5 template tutorial, we'll show you how to add a new position to your template.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_position-xyz.gif","width":982,"height":702,"caption":"position-xyz"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/add-new-position\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to add a new position to a Joomla 2.5 Template"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf","name":"Brad Markle","url":"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=1592"}],"version-history":[{"count":3,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1592\/revisions"}],"predecessor-version":[{"id":85801,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1592\/revisions\/85801"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=1592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=1592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=1592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}