Actions

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 (Applied tutorial template and removed categories)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
+
{{:Customising the JA Purity template/tutorialtemplate|logo.gif (used for PNG transparency problems), logo.png and template.css|<pre>
The relevant files, logo.gif (used for PNG transparency problems) and logo.png, are in the following directory:<br />
+
    <location of template>/
<pre>
+
        css/
    templates/ja_purity
+
            template.css
                images/
+
        images/
                    logo.gif
+
            logo.gif
                    logo.png
+
            logo.png
</pre>
+
</pre>}}
  
If you've been following the [[Tutorial:Customising_the_JA_Purity_template|tutorial]] you can download a tutorial version of the template that installs to the following directory:<br/>
+
== Replacing the Logo ==
<pre>
+
    templates/my_japurity
+
                  images/
+
                      logo.gif
+
                      logo.png
+
</pre>
+
  
 
# Create a 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].
Line 20: Line 14:
 
# Edit, Save, Test till you are satisfied with your new logo.
 
# 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 [[Ja Purity resize header|size of the header area]] and edit the relevant style sheet, template.css which is in the following directory:<br />
+
== Changing the Logo Size ==
<pre>
+
    templates/ja_purity
+
                css/
+
                    template.css
+
</pre>
+
 
+
If you've been following the tutorial version then the directory is:<br/>
+
<pre>
+
    templates/my_japurity
+
                  css/
+
                    template.css
+
</pre>
+
  
 
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.  
 
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.  
Line 38: Line 20:
 
# To use the Joomla editor log into the Administration area of your site
 
# To use the Joomla editor log into the Administration area of your site
 
# Open the Template Manager [[Image:JA_Purity_Tutorial_TemplateManager0.jpg|thumb|right]]  
 
# Open the Template Manager [[Image:JA_Purity_Tutorial_TemplateManager0.jpg|thumb|right]]  
# Click on your version of the JA purity template or
+
# Click on your version of the JA purity template [[Image:JA Purity Tutorial EditButton.jpg|tumb|right]]
# Click the Edit button [[Image:JA Purity Tutorial EditButton.jpg|tumb|right]]
+
# Click the CSS Editor icon in the upper right hand [[Image:JA Purity Tutorial EditCssButton.png|thumb|right]]
# Click the CSS Editor icon in the upper right [[Image:JA Purity Tutorial EditCssButton.png|thumb|right]]
+
 
# Click the template.css radio button [[Image:JA Purity Tutorial TemplateCss.jpg|thumb|right]]
 
# Click the template.css radio button [[Image:JA Purity Tutorial TemplateCss.jpg|thumb|right]]
 
# Click the Edit button to begin editing template.css
 
# Click the Edit button to begin editing template.css
Line 53: Line 34:
 
#: z-index: 100;
 
#: z-index: 100;
 
#: }</pre>
 
#: }</pre>
# Change the above values to the desired height and width of the logo.
+
# Change the above values to the desired height and width of the logo
 +
# Click the Save button to apply the settings
 
#Finished
 
#Finished
 
<noinclude>
 
[[Category:Beginners]]
 
[[Category:JA Purity template]]
 
[[Category:Tutorials]]
 
</noinclude>
 

Revision as of 16:08, 15 January 2011

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, logo.gif (used for PNG transparency problems), logo.png and template.css, 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/
            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.

Changing the Logo Size

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 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
    tumb
  4. Click the CSS Editor icon in the upper right hand
    JA Purity Tutorial EditCssButton.png
  5. Click the template.css radio button
    JA Purity Tutorial TemplateCss.jpg
  6. Click the Edit button to begin editing template.css
  7. 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;
    }
  8. Change the above values to the desired height and width of the logo
  9. Click the Save button to apply the settings
  10. Finished