This tutorial will show how to add additional position for module in JA Purity Template. In this case will add above the main content.
Preview:
Before:
After:
Add a Position for a Module Above Main Content
To add a new position for a module you need to edit two files, index.php and templateDetails.xml
Edit index.php
To edit index.php, go to Administrator page -> menu Extensions -> Template Manager. Choose JA_Purity -> click on Edit icon. Then click Edit HTML icon.
Go to line 172, find:
Add code above it to add a new position. You can have different kinds of module style, here are the examples:
First example:
The first style doesn’t have title in this style.
Second example:
It has a title but no styling.
Third example:
It has a title with styling.
So it become like this:
countModules('banner')) : ?>
Save it. Since you add a new position, for this example is user6, you need to edit templateDetails.xml.
Edit templateDetails.xml
To edit the file you need to browse folder on your web server. It is located in ja_purity template folder.
Go to tag
Add
user6
so it become like this:
user4
user5
user6
footer
syndicate
Add a Module to user6 Position
To see the result assign a module to user6, for example I use the Newsflash module.
Related posts:
- Little Modification on JA Purity Joomla! 1.5 template: JA Purity JA Purity is one of...
Related posts brought to you by Yet Another Related Posts Plugin.