Actions

J1.5

Difference between revisions of "Customising the JA Purity template/customisations/Centering the hornav"

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | customisations
(Built base guidelines)
 
m
Line 26: Line 26:
 
   </div>
 
   </div>
 
</pre>
 
</pre>
 +
<noinclude>
 +
[[Category:Beginners]]
 +
[[Category:JA Purity template]]
 +
[[Category:Tutorials]]
 +
</noinclude>

Revision as of 05:34, 27 May 2009

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.



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:

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

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" />
   	</div>
   </div>