{"id":48981,"date":"2015-06-02T03:41:27","date_gmt":"2015-06-02T07:41:27","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=48981"},"modified":"2017-07-11T11:10:07","modified_gmt":"2017-07-11T15:10:07","slug":"joomla-3-x-how-to-add-module-position","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/joomla-3-x-how-to-add-module-position.html","title":{"rendered":"Joomla 3.x. How to add module position"},"content":{"rendered":"<p>\r\n<p>This tutorial is going to show you how to add module position in Joomla 3.x. template.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=5SlJ-hrKNlU?width=1280&amp;height=720\" rel=\"prettyPhoto\">Joomla 3.x. How to add module position<\/a><\/p>\r\n<p>You already know <a href=\"\/help\/joomla-3-x-how-to-check-available-module-positions-of-the-template.html\" target=\"_blank\">how to check available module positions of the template<\/a>. In this tutorial we will show you how to add new module position:<\/p>\r\n<ol>\r\n<li>\r\n<p>Log into your Joomla admin panel. Navigate to <strong>Extensions<\/strong> > <strong>Template Manager<\/strong> > <strong>Templates<\/strong> > <strong>Theme#### Details and Files<\/strong> (where #### is a number):<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_1-300x228.jpg\" alt=\"Joomla_3.x._How_to_add_module_position_1\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-48982\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_1-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_1-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_1.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Or connect to your server using FTP or hosting Cpanel. Open <strong>\/templates\/theme####<\/strong> folder.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Edit <strong>index.php<\/strong> file. Open it in your admin panel or any text editor on your computer.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Locate the code used for position you would like your new module position to appear after.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Copy this code and paste it just after the php closing tag of the previous position. The code of your new position will look like the following:<\/p>\r\n<pre class=\"brush:php\">&lt;?php if ($this-&gt;countModules('your_new_position_title') &amp;&amp; $hideByView == false &amp;&amp; $hideByEdit == false): ?&gt;\r\n\t\t\t&lt;div id=&quot;your_new_position_title&quot;&gt;\r\n\t\t\t&lt;jdoc:include type=&quot;modules&quot; name=&quot;your_new_position_title&quot; style=&quot;html5nosize&quot; \/&gt;\r\n\t\t\t&lt;\/div&gt;\r\n\t\t>&lt;?php endif; ?&gt;<\/pre>\r\n<p>Replace <em>your_new_position_title<\/em> with your position name.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Now locate the <strong>templateDetails.xml<\/strong> file and add the module position here as well. File location is the same: <strong>Extensions<\/strong> > <strong>Template Manager<\/strong> > <strong>Templates<\/strong> > <strong>Theme#### Details and Files<\/strong> (where #### is a number) in your admin panel (or <strong>\/templates\/theme####<\/strong> folder on your server).<\/p>\r\n<\/li>\r\n<li>\r\n<p>Copy an entry of an existing position and rename it, like in the following example:<\/p>\r\n<pre class=\"brush:xml\">&lt;positions&gt;\r\n\t\t\t...\r\n\t\t\t&lt;position&gt;top-a&lt;\/position&gt;\r\n\t\t\t&lt;position&gt;top-b&lt;\/position&gt;\r\n\t\t\t&lt;position&gt;top-c&lt;\/position&gt;\r\n\t\t\t&lt;position&gt;your_new_position_title&lt;\/position&gt;\r\n\t\t\t...\r\n\t\t\t&lt;\/positions&gt;\r\n\t\t<\/pre>\r\n<p>Where <em>your_new_position_title<\/em> is your new module position.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Now log into your Joomla admin panel, navigate to <strong>Extensions<\/strong> > <strong>Module Manager<\/strong> page to add module to your new position. Click <strong>New<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_2-300x228.jpg\" alt=\"Joomla_3.x._How_to_add_module_position_2\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-48983\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_2-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_2-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_2.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Select module type. Enter module content and select your new position from <strong>Position<\/strong> drop down. Make sure module status is <strong>Published<\/strong>. Save the changes and check your site:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_3-300x228.jpg\" alt=\"Joomla_3.x._How_to_add_module_position_3\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-48984\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_3-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_3-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/Joomla_3.x._How_to_add_module_position_3.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=5SlJ-hrKNlU?width=1280&amp;height=720\" rel=\"prettyPhoto\">Joomla 3.x. How to add module position<\/a><\/p>\r\n<p><\/p>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img decoding=\"async\" src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to show you how to add module position in Joomla 3.x. template.<\/p>\n","protected":false},"author":55,"featured_media":49003,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[724],"tags":[1158,483,557,667],"class_list":["post-48981","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-joomla-tutorials","tag-add","tag-joomla-2","tag-module","tag-position"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/48981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=48981"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/48981\/revisions"}],"predecessor-version":[{"id":81886,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/48981\/revisions\/81886"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/49003"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=48981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=48981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=48981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}