How to add a module position

When people contact us regarding help with the CustomCSS module, the Background-Selector module or the Anycode module, we're regularly asked which module position they should apply it to. This is often because they're used to adding CSS code within the the <head> tags of the page or javascript tracking code before the closing <body> tag but they're unsure where this code should go when dealing with a limited amount of module positions.

 

Our reply is always the same... create your own.

 

Adding this line to your template's index.php file will create a new module position called "here-you-go"...

 

<jdoc:include type="modules" name="here-you-go" />

 

For the CSS based modules we recommend adding the line before the closing <head> tag (so that it is W3C compliant).

 

If you are adding Javascript tracking code via the AnyCode module we recommend adding the line before the closing <body> tag (so that it is loaded last).

 

And when you are ready to allocate a module to this position, there's no need to edit the template's XML file - simply type the module position into the module position box (instead of using any of the existing drop down selections).