Web Design, Print & SEO Blogs
Web Design & SEO Blog Collection

Main Content Area

Main Articles

Joomla: Add a Module Position to a Template Override

This is a quick tip for Joomla 3.x.

If you want to add a module position directly into the php file of a template override then you can use the following code:

$myModule = JModuleHelper::getModules('my-position');
if(!empty($myModule[0])) {
echo JModuleHelper::renderModule($myModule[0]);

You can update 'my-position' to whatever module position you desire and then simply add your module to that position. Easy!