fir3net
PPS-Firenetbanner-780.5x190-30-03-17

Adding a custom module position to the 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.

 

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001