Actions

J1.5

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

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | customisations
Line 49: Line 49:
 
== Replace Entire Header Background Area with One Image ==
 
== Replace Entire Header Background Area with One Image ==
  
# Copy/rename the file header-mask.png
+
# Copy/rename the file templates/ja_purity/images/header-mask.png
# Save the desired image as header-mask.png
+
# Save the desired image as templates/ja_purity/images/header-mask.png
  
Add the following line to the #ja-headerwrap section in template.css
+
Add the following line to the #ja-headerwrap section in templates/ja_purity/css/template.css
  
 
<pre>
 
<pre>

Revision as of 17:22, 4 April 2010

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 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, header1.jpg, header2.jpg and header3.jpg, are in the following directory:

    templates/ja_purity
                 images/
                     header/
                         header1.jpg
                         header2.jpg
                         header3.jpg

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/
                     header/
                         header1.jpg
                         header2.jpg
                         header3.jpg
  1. Create an new image, width: 600 pixels , height: 80 pixels using any graphics editor such as Gimp.
  2. Save the image as a JPG to the template images/header directory. Make sure you overwrite the existing headerX.jpg files.
  3. Edit, Save, Test till you are satisfied with your new header.

If you decide later to change the size of the header area then you'll want to change the size of your images to match.

If you do change the size of the header images you'll need to update one more file, header-mask.png, in each of the color styles. These files are located in the following directory:

   templates/ja_purity
                   images/
                       header-mask.png
                   styles/
                       header/
                           blue/
                               header-mask.png
                           green/
                               header-mask.png

If you're following the tutorial version the directory starts in:

   templates/my_japurity

All you need to do is change the size of the file to match the height of your header image and be 2 pixels wider than your header images. The default mask size is width: 602 pixels, height: 80 pixels. So if you changed your header image to be 400 by 141 then the mask image would be 402 by 141. The mask can be recreated using a simple gradient tool in any graphics editor. Set the color of the gradient to match the color of the header.

Replace Entire Header Background Area with One Image

  1. Copy/rename the file templates/ja_purity/images/header-mask.png
  2. Save the desired image as templates/ja_purity/images/header-mask.png

Add the following line to the #ja-headerwrap section in templates/ja_purity/css/template.css

#ja-headerwrap {
...
    background: url(../images/header-mask.png);
...
}