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
m
Line 46: Line 46:
 
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
 
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.  
 
any graphics editor. Set the color of the gradient to match the color of the header.  
 +
 +
== Replace Entire Header Background Area with One Image ==
 +
 +
# Copy/rename the file header-mask.png
 +
# Save the desired image as header-mask.png
 +
 +
Add the following line to #ja-headerwrap
 +
 +
<pre>
 +
#ja-headerwrap {
 +
...
 +
    background: url(../images/header-mask.png);
 +
...
 +
}
 +
</pre>
  
 
<noinclude>
 
<noinclude>

Revision as of 17:18, 4 April 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 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[edit]

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

Add the following line to #ja-headerwrap

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