Difference between revisions of "Customising the JA Purity template/customisations/Centering the hornav"
From Joomla! Documentation
< J1.5:Customising the JA Purity template | customisations
m (Start edit session) |
m |
||
Line 1: | Line 1: | ||
− | + | 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:<br /> | |
− | The | ||
− | |||
− | |||
<pre> | <pre> | ||
− | + | templates/ja_purity | |
− | + | index.php | |
− | + | css/ | |
− | + | ja-sosdmenu.css | |
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | + | If you've been following the [[Tutorial:Customising_the_JA_Purity_template|tutorial]] you can download a tutorial version of the template that installs to the following directory:<br/> | |
− | |||
<pre> | <pre> | ||
− | + | templates/my_japurity | |
− | + | index.php | |
− | + | css/ | |
− | + | ja-sosdmenu.css | |
− | |||
</pre> | </pre> | ||
+ | |||
+ | 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. | ||
+ | |||
+ | #To use the Joomla editor just log into the Administration area of your site | ||
+ | #Open the Template Manager [[Image:JA_Purity_Tutorial_TemplateManager0.jpg|thumb|right]] | ||
+ | #Click on your version of the JA purity template or | ||
+ | #Click the Edit button [[Image:JA Purity Tutorial EditButton.jpg|tumb|right]] | ||
+ | #Click the HTML Editor icon in the upper right [[Image:JA Purity Tutorial EditHTMLButton.png|thumb|right]] | ||
+ | #Near line 93 you will find: | ||
+ | #:<pre> | ||
+ | #:<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; ?>;} | ||
+ | #:</style> | ||
+ | #:</pre> | ||
+ | #Change the class #ja-mainnav to #ja-mainnavwrap in the style section above | ||
+ | #Save and close the HTML file | ||
+ | #Click the CSS Editor icon in the upper right [[Image:JA Purity Tutorial EditCssButton.png|thumb|right]] | ||
+ | #Click the ja-sosdmenu.css radio button [[Image:JA Purity Tutorial Ja-sosdmenuCss.jpg|thumb|right]] | ||
+ | #Click the Edit button to begin editing ja-sosdmenu.css | ||
+ | #Near line 12 you will find: | ||
+ | #:<pre> | ||
+ | #: #ja-mainnav, #ja-mainnav ul { | ||
+ | #: padding: 0; | ||
+ | #: margin: 0; | ||
+ | #: line-height: 20px; | ||
+ | #:} | ||
+ | #:</pre> | ||
+ | #Add the following before line 12 | ||
+ | #:<pre> | ||
+ | #: #ja-mainnavwrap { | ||
+ | #: max-width: 960px; <--- EDIT THIS | ||
+ | #: margin: 0; | ||
+ | #:} | ||
+ | #:</pre> | ||
+ | #Change the above line to suit max width | ||
+ | #You will probably also want to add the same line to the ja-sosdmenu-rtl.css file as well | ||
+ | #Finished | ||
+ | |||
<noinclude> | <noinclude> | ||
[[Category:Beginners]] | [[Category:Beginners]] |
Revision as of 02:36, 10 June 2009
The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
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:
templates/ja_purity index.php css/ ja-sosdmenu.css
If you've been following the tutorial you can download a tutorial version of the template that installs to the following directory:
templates/my_japurity index.php css/ ja-sosdmenu.css
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.
- To use the Joomla editor just log into the Administration area of your site
- Open the Template Manager
- Click on your version of the JA purity template or
- Click the Edit button
- Click the HTML Editor icon in the upper right
- 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; ?>;}
- </style>
- Change the class #ja-mainnav to #ja-mainnavwrap in the style section above
- Save and close the HTML file
- Click the CSS Editor icon in the upper right
- Click the ja-sosdmenu.css radio button
- Click the Edit button to begin editing ja-sosdmenu.css
- Near line 12 you will find:
- #ja-mainnav, #ja-mainnav ul {
- padding: 0;
- margin: 0;
- line-height: 20px;
- }
- Add the following before line 12
- #ja-mainnavwrap {
- max-width: 960px; <--- EDIT THIS
- margin: 0;
- }
- Change the above line to suit max width
- You will probably also want to add the same line to the ja-sosdmenu-rtl.css file as well
- Finished