J1.5

Difference between revisions of "Customising the JA Purity template/customisations/Replacing the Joomla! Logo"

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | customisations
m
m
Line 16: Line 16:
 
</pre>
 
</pre>
  
# Create an new image, width: 207 pixels , height: 80 pixels using any graphics editor such as [http://gimp.org Gimp].
+
# Create a new image, width: 207 pixels , height: 80 pixels using any graphics editor such as [http://gimp.org Gimp].
 
# Save the image as both a PNG and a Gif to the template images directory. Make sure you overwrite the existing logo.gif and logo.png files.  
 
# Save the image as both a PNG and a Gif to the template images directory. Make sure you overwrite the existing logo.gif and logo.png files.  
 
# Edit, Save, Test till you are satisfied with your new logo.
 
# Edit, Save, Test till you are satisfied with your new logo.

Revision as of 13:30, 15 May 2010

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 by default along with Joomla. The relevant files, logo.gif (used for PNG transparency problems) and logo.png, are in the following directory:

    templates/ja_purity
                 images/
                     logo.gif
                     logo.png

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
                   images/
                       logo.gif
                       logo.png
  1. Create a new image, width: 207 pixels , height: 80 pixels using any graphics editor such as Gimp.
  2. Save the image as both a PNG and a Gif to the template images directory. Make sure you overwrite the existing logo.gif and logo.png files.
  3. Edit, Save, Test till you are satisfied with your new logo.

If you change the size of the logo you'll need to change the size of the header area and edit the relevant style sheet, template.css which is in the following directory:

    templates/ja_purity
                 css/
                     template.css

If you've been following the tutorial version then the directory is:

    templates/my_japurity
                   css/
                     template.css

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 956 you will find:
    h1.logo a {
    width: 208px; <--- EDIT THIS ---<<
    display: block;
    background: url(../images/logo.png) no-repeat;
    height: 80px; <--- EDIT THIS ---<<
    position: relative;
    z-index: 100;
    }
  9. Change the above values to the desired height and width of the logo.
  10. Finished