J1.5

Difference between revisions of "Customising the JA Purity template/customisations/Resizing the header"

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | customisations
m
m
Line 33: Line 33:
 
#: color: #CCCCCC;
 
#: color: #CCCCCC;
 
#: line-height: normal;
 
#: line-height: normal;
#: height: 80px; '''<---- EDIT THIS'''
+
#: height: 80px; <---- EDIT THIS
 
#: }
 
#: }
 
#:  
 
#:  
 
#: #ja-header {
 
#: #ja-header {
 
#: position: relative;
 
#: position: relative;
#: height: 80px; '''<---- EDIT THIS'''
+
#: height: 80px; <---- EDIT THIS
 
#: }
 
#: }
 
#:
 
#:
Line 45: Line 45:
 
#: display: block;
 
#: display: block;
 
#: background: url(../images/header-mask.png) no-repeat top right;
 
#: background: url(../images/header-mask.png) no-repeat top right;
#: height: 80px; '''<---- EDIT THIS'''
+
#: height: 80px; <---- EDIT THIS
 
#: position: absolute;
 
#: position: absolute;
 
#: top: 0;
 
#: top: 0;

Revision as of 14:23, 28 December 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 file, template.css is in the following directory:

    templates/ja_purity
                 css/
                     template.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
                   css/
                     template.css

This article will help you alter the height of the header.

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

  1. To use the Joomla editor just log into the Administration area of your site
  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
    tumb
  5. Click the CSS Editor icon in the upper right
    JA Purity Tutorial EditCssButton.png
  6. Click the template.css radio button
    JA Purity Tutorial TemplateCss.jpg
  7. Click the Edit button to begin editing template.css
  8. Near line 921 you will find:
    /* HEADER
    --------------------------------------------------------- */
    #ja-headerwrap {
    background: #333333;
    color: #CCCCCC;
    line-height: normal;
    height: 80px; <---- EDIT THIS
    }
    #ja-header {
    position: relative;
    height: 80px; <---- EDIT THIS
    }
    .ja-headermask {
    width: 602px;
    display: block;
    background: url(../images/header-mask.png) no-repeat top right;
    height: 80px; <---- EDIT THIS
    position: absolute;
    top: 0;
    right: -1px;
    }
  9. Change the above values to the desired height of the header.
  10. Finished

Now that you've changed the size of the header you probably want to update the header pictures and the logo to match the new size.

If you prefer to keep the current size of your logo you may want to change it's position.