J1.5

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

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | customisations
m (archiving articles with category removal and addition)
 
(19 intermediate revisions by 8 users not shown)
Line 1: Line 1:
# open with a text editor the file ''templates\ja_purity\css\template.css''
+
{{:Customising the JA Purity template/tutorialtemplate|template.css|<pre>
# about at line 921 you will find:
+
    <location of template>/
 +
        css/
 +
            template.css
 +
</pre>}}
 +
 
 +
This article will help you alter the height of the header.
 +
 
 +
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 just log into the Administration area of your site
 +
# Open the Template Manager [[Image:JA_Purity_Tutorial_TemplateManager0.jpg|thumb|right]]
 +
# Click on your version of the JA purity template or Click the Edit button [[Image:JA Purity Tutorial EditButton.jpg|tumb|right]]
 +
# Click the Edit CSS 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 Edit button to begin editing template.css
 +
# Near line 921 you will find:
 
#: <pre>
 
#: <pre>
 
#: /* HEADER
 
#: /* HEADER
Line 24: Line 39:
 
#: top: 0;
 
#: top: 0;
 
#: right: -1px;
 
#: right: -1px;
#: }</pre> </blockquote>
+
#: }</pre>
# change these values with the desidered height.
+
# Change all of the above values to the same value of the desired height of the header.
# always in the file templates\ja_purity\css\template.css about at line 957 you will find
+
#Finished
#: <pre>
+
 
#: h1.logo a {
+
Now that you've changed the size of the header you probably want to [[Customising the JA Purity template/customisations/Replacing the header pictures|update the header pictures]] and the [[Customising the JA Purity template/customisations/Replacing the Joomla! Logo|logo]] to match the new size.
#: width: 208px; <---- EDIT THIS (same of your logo)
+
 
#: display: block;
+
If you prefer to keep the current size of your logo you may want to change its [[Customising the JA Purity template/customisations/Changing the position of your logo|position]].
#: background: url(../images/logo.png) no-repeat;
+
 
#: height: 80px; <---- EDIT THIS (same of your logo)
+
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]
#: position: relative;
 
#: z-index: 100;
 
#: }</pre> </blockquote>
 
# now using your graphic editor you have to resize the heighy of the following files (same height of your header):
 
## ''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''
 
# If the height of your logo is different of the height of your header you probanly need to look here [[Ja_Purity Change postion of you logo|Change postion of you logo]]
 
# finished
 

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

This article will help you alter the height of the header.

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 just 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 or Click the Edit button
    tumb
  4. Click the Edit CSS icon in the upper right
    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 921 you will find:
    /* 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;
    }
  8. Change all of the above values to the same value of the desired height of the header.
  9. Finished

Now that you've changed the size of the header you probably want to update the header pictures and the logo to match the new size.

If you prefer to keep the current size of your logo you may want to change its position.