Customising the JA Purity template/customisations/Centering the hornav

From Joomla! Documentation

< J1.5:Customising the JA Purity template | customisations

Replacement filing cabinet.png

The original JA Purity template was provided from JoomlArt.com as a zip but the latest files have been installed along with Joomla. The relevant files, index.php and ja-sosdmenu.css are in the following directories:




You can edit the file directly in your choice of plain text editors such as VI or Notepad or you can use the HTML Editor provided in the Joomla Administration area.

  2. Open the Template Manager
    JA Purity Tutorial TemplateManager0.jpg
  3. Click on your version of the JA purity template or
  4. Click the Edit button
  5. Click the HTML Editor icon in the upper right
    JA Purity Tutorial EditHTMLButton.png
  6. Near line 93 you will find:
    <style type="text/css">
    #ja-header,#ja-mainnav,#ja-container,#ja-botsl,#ja-footer {width: <?php echo $tmpWidth; ?>;margin: 0 auto;}
    #ja-wrapper {min-width: <?php echo $tmpWrapMin; ?>;}
  7. Change the class #ja-mainnav to #ja-mainnavwrap in the style section above
  8. Save and close the HTML file
  9. Click the CSS Editor icon in the upper right
    JA Purity Tutorial EditCssButton.png
  10. Click the ja-sosdmenu.css radio button
    JA Purity Tutorial Ja-sosdmenuCss.jpg
  11. Click the Edit button to begin editing ja-sosdmenu.css
  12. Near line 12 you will find:
    #ja-mainnav, #ja-mainnav ul {
    padding: 0;
    margin: 0;
    line-height: 20px;
  13. Add the following before line 12
    #ja-mainnavwrap {
    max-width: 960px; <--- EDIT THIS
    margin: 0;
  14. Change the above line to suit max width
  15. You will probably also want to add the same line to the ja-sosdmenu-rtl.css file as well
  16. Finished