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
m (→‎Replace Entire Header Background Area with One Image: archiving articles with category removal and addition)
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{underconstruction}}
+
{{:Customising the JA Purity template/tutorialtemplate|template.css, header1.jpg, header2.jpg and header3.jpg|<pre>
# Find the header pictures in your ja_purity template folder: The '''''image''''' directory stores two subdirectories, namely ''header'' and ''rtl'', as well as the other JA Purity image files.
+
    <location of template>/
# Open the header directory, download one of them and note, that your new pictures have to have the same names, id est header1.jpg, header2.jpg and header3.jpg.
+
        css/
# Analyze the size, it is 600 x 80 pixels, and create your image files 600 x 80 pixels according to your needs.
+
            template.css
# Create three files and rename them header1.jpg, header2.jpg and header3.jpg. The smaller in KB, the faster these new header images load.
+
        images/
# Upload these three image files into your ''header'' directory. Please do not forget to reload your page to see the changes.
+
            header/
 +
                header1.jpg
 +
                header2.jpg
 +
                header3.jpg
 +
</pre>}}
  
 +
# Create an new image, width: 600 pixels , height: 80 pixels using any graphics editor such as [http://gimp.org Gimp].
 +
# Save the image as a JPG to the template images/header directory. Make sure you overwrite the existing headerX.jpg files.
 +
# Edit, Save, Test till you are satisfied with your new header.
  
[[Category:Procedures]]
+
If you decide later to [[Customising the JA Purity template/customisations/Resizing the header|change the size of the header area]] then you'll want to change the size of your images to match.
[[Category:Beginners]]
+
 
[[Category:Templates]]
+
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:
 +
<pre>
 +
  <location of template>/
 +
        images/
 +
            header-mask.png
 +
        styles/
 +
            header/
 +
                blue/
 +
                    header-mask.png
 +
                green/
 +
                    header-mask.png
 +
</pre>
 +
 
 +
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 ==
 +
 
 +
# Copy/rename the file templates/ja_purity/images/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 templates/ja_purity/css/template.css
 +
 
 +
<source lang="css">
 +
#ja-headerwrap {
 +
...
 +
    background: url(../images/header-mask.png);
 +
...
 +
}
 +
</pre>
 +
 
 +
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]

Latest revision as of 09:26, 29 April 2013

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, template.css, header1.jpg, header2.jpg and header3.jpg, can be found in templates/ja_purity. If you've been following the tutorial, you can download a tutorial version of the template that installs to the templates/my_japurity folder. Inside the folder of the template, the files are located as follows:

    <location of template>/
        css/
            template.css
        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:

   <location of template>/
        images/
            header-mask.png
        styles/
            header/
                blue/
                    header-mask.png
                green/
                    header-mask.png

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 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

<source lang="css">

  1. ja-headerwrap {

...

   background: url(../images/header-mask.png);

... }