Add Custom Module Position to RocketTheme Afterburner Template

In this article we will be adding a custom module position to the RocketTheme Afterburner template. The syntax used here will be specfic to the Afterburner template but you should be able to adjust and use as nessecary within your own template.

Add the following code to the following files within /templates/rt_afterburner_j15/

index.php

<div id="nav">
<jdoc:include type="modules" name="nav" style="none" />
!! under here add !!
<jdoc:include type="modules" name="positionname" style="none" />

templateDetails.xml

    <positions>
        <position>top</position>
        <position>nav</position>
!! under here add !!
<position>positionname</position>

Adding a Div Class
So that you can add the new module to your CSS you will need to wrap the module position within your index.php in the syntax,

<div class="positionclass">
POSITION HERE
</div>

Other ways you can wrap your module position is to add it to the modules “module suffix class” or within the actual HTML of your module.

 

Rick Donato

Want to become a Joomla expert?

Here is our hand-picked selection of the best courses you can find online:
The Complete Web Development Bootcamp course
Joomla for Beginners course
Professional Websites with Joomla Gantry course
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial