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 (Changing the Logo Size: archiving articles with category removal and addition)
 
(17 intermediate revisions by 7 users not shown)
Line 1: Line 1:
JA Purity comes as a *.zip - file. To see what is in it, download it to your computer and unzip it. All files are to be found in the ''ja_purity'' directory.  
+
{{:Customising the JA Purity template/tutorialtemplate|logo.gif (used for PNG transparency problems), logo.png and template.css|<pre>
 +
    <location of template>/
 +
        css/
 +
            template.css
 +
        images/
 +
            logo.gif
 +
            logo.png
 +
</pre>}}
  
 +
== Replacing the Logo ==
  
====Your logo is 207 x 80 pixels or less:====
+
# 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.
 +
# Edit, Save, Test till you are satisfied with your new logo.
  
# Find the ''logo'' files in your ja_purity folder, it is in the '''''images''''' main directory.
+
== Changing the Logo Size ==
# Download ''logo.png'' and/or ''logo.gif'' to see their size, namely 207 x 80 pixels.
+
# Create your image files in the same size, rename them ''logo.png'' and/or ''logo.gif'' in 207 x 80 pixels.
+
# Load your image logo files into the folder '''''ja_purity/images'''''.
+
  
 +
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.
  
 
+
# To use the Joomla editor log into the Administration area of your site
====Your logo has different size:====
+
# Open the Template Manager [[Image:JA_Purity_Tutorial_TemplateManager0.jpg|thumb|right]]
: CHANGE LOGO
+
# Click on your version of the JA purity template [[Image:JA Purity Tutorial EditButton.jpg|tumb|right]]
# get an image of your logo eg: ''imagelogo.bmp''
+
# Click the CSS Editor icon in the upper right hand [[Image:JA Purity Tutorial EditCssButton.png|thumb|right]]
# use your graphic editor and save it as ''logo.gif'' and ''logo.png''
+
# Click the template.css radio button [[Image:JA Purity Tutorial TemplateCss.jpg|thumb|right]]
# now you have two files!
+
# Click the Edit button to begin editing template.css
# copy these two files and paste it in ''templates\ja_purity\images'' overwrite the previous files
+
# Near line 956 you will find:
# finished
+
 
+
: RESIZE THE HEADER
+
# open with a text editor the file ''templates\ja_purity\css\template.css''
+
# about at line 921 you will find:
+
#: <pre>
+
#: /* HEADER
+
#: --------------------------------------------------------- */
+
#: #ja-headerwrap {
+
#: background: #333333;
+
#: color: #CCCCCC;
+
#: line-height: normal;
+
#: height: 80px; <---- EDIT THIS
+
#: }
+
#:
+
#: #ja-header {
+
#: position: relative;
+
#: height: 80px; <---- EDIT THIS
+
#: }
+
#:
+
#: .ja-headermask {
+
#: width: 602px;
+
#: display: block;
+
#: background: url(../images/header-mask.png) no-repeat top right;
+
#: height: 80px; <---- EDIT THIS
+
#: position: absolute;
+
#: top: 0;
+
#: right: -1px;
+
#: }</pre> </blockquote>
+
# change these values with your logo height or more.
+
# always in the file templates\ja_purity\css\template.css about at line 957 you will find
+
 
#: <pre>
 
#: <pre>
 
#: h1.logo a {
 
#: h1.logo a {
#: width: 208px; <---- EDIT THIS (same of your logo)
+
#: width: 208px;     <--- EDIT THIS ---<<
#: display: block;
+
#: display: block;
#: background: url(../images/logo.png) no-repeat;<---- EDIT THIS (view next step)
+
#: background: url(../images/logo.png) no-repeat;
#: height: 80px; <---- EDIT THIS (same of the header height)
+
#: height: 80px;     <--- EDIT THIS ---<<
#: position: relative;
+
#: position: relative;
#: z-index: 100;
+
#: z-index: 100;
#: }</pre> </blockquote>
+
#: }</pre>
# now if you have chose the height of your header bigger than the height of your logo you have to add this properties to center vertically your logo:
+
# Change the above values to the desired height and width of the logo
#: <pre>background: url(../images/logo.png) no-repeat center center;</pre>
+
# Click the Save button to apply the settings
# now using your graphic editor you have to resize the heighy of the following files (same height of your header):
+
#Finished
## ''templates\ja_purity\imagesheader-mask.png''
+
## ''templates\ja_purity\styles\header\blue\images\header-mask.png''
+
## ''templates\ja_purity\styles\header\green\images\header-mask.png''
+
# finished
+
 
+
 
+
  
[[Category:Procedures]]
+
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]
[[Category:Beginners]]
+
[[Category:Templates]]
+

Latest revision as of 09:26, 29 April 2013

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