Customising the JA Purity template/customisations/Centering the hornav

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | customisations
Revision as of 00:02, 10 June 2009 by Jwwicks (Talk | contribs)

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Quill icon.png
Page Actively Being Edited!

This j1.5 page is actively undergoing a major edit for a short while.
As a courtesy, please do not edit this page while this message is displayed. The user who added this notice will be listed in the page history. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page. If this page has not been edited for several hours, please remove this template, or replace it with {{underconstruction}} or {{incomplete}}.

The simpliest way to center the hornav menu, in Ja_Purity template, is to edit the file templates\ja_purity\index.php.

Open with a text editor that file; about at line 145 you will find:

   <?php if ($this->countModules('hornav')): ?>
   <div id="ja-mainnavwrap">
        <div id="ja-mainnav" class="clearfix">                <---- EDIT THIS
        <jdoc:include type="modules" name="hornav" />
   <?php endif; ?>

In the signed line add these style information: width: 500px; margin: 0 auto; You will obtain something like it:

   <div id="ja-mainnavwrap">
        <div id="ja-mainnav" class="clearfix" style="width: 500px; margin: 0 auto;">  <-- EDITED
        <jdoc:include type="modules" name="hornav" />