Actions

J1.5

Difference between revisions of "Customising the JA Purity template/customisations/Changing the position of your logo"

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | customisations
m
m (Adjusted category)
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
====Logo image====
+
{{:Customising the JA Purity template/tutorialtemplate|template.css|<pre>
# open with a text editor the file ''templates\ja_purity\css\template.css'' about at line 957 you will find:
+
    <location of template>/
 +
        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.
 +
 
 +
#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 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 Edit button to begin editing template.css
 +
#Near line 957 you will find:
 
#: <pre>
 
#: <pre>
 
#: h1.logo a {
 
#: h1.logo a {
Line 12: Line 26:
 
#: z-index: 100;
 
#: z-index: 100;
 
#: }</pre>
 
#: }</pre>
# now in the added line you have to enter the number of pixel that is better for your logo.
+
#In the line you added place the logo image in the position you prefer.
# finished
+
#Next you'll also want to modify the position of the text version of your logo...
<br>
+
#Near line 957 you will find:
====Logo text====
+
# open with a text editor the file ''templates\ja_purity\css\template.css'' about at line 972 you will find:
+
 
#: <pre>
 
#: <pre>
 
#: h1.logo-text a {
 
#: h1.logo-text a {
Line 38: Line 50:
 
#: left: 0; <---- EDIT THIS
 
#: left: 0; <---- EDIT THIS
 
#: }</pre>
 
#: }</pre>
# now in these lines you have to enter the number of pixel that is better for you.
+
#Edit the lines above to place the image in the position your prefer
# finished
+
#Finished
<noinclude>
+
[[Category:Beginners]]
+
[[Category:JA Purity template]]
+
[[Category:Tutorials]]
+
</noinclude>
+

Revision as of 17:02, 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, 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

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
  4. Click the Edit button
    tumb
  5. Click the CSS Editor icon in the upper right
    JA Purity Tutorial EditCssButton.png
  6. Click the template.css radio button
    JA Purity Tutorial TemplateCss.jpg
  7. Click the Edit button to begin editing template.css
  8. Near line 957 you will find:
    h1.logo a {
    width: 208px;
    display: block;
    background: url(../images/logo.png) no-repeat;
    height: 80px;
    position: absolute; <---- EDIT THIS
    top: 10px; <---- ADD THIS
    left: 10px; <---- ADD THIS
    z-index: 100;
    }
  9. In the line you added place the logo image in the position you prefer.
  10. Next you'll also want to modify the position of the text version of your logo...
  11. Near line 957 you will find:
    h1.logo-text a {
    color: #CCCCCC !important;
    text-decoration: none;
    outline: none;
    position: absolute;
    bottom: 40px; <---- EDIT THIS
    left: 5px; <---- EDIT THIS
    }
    p.site-slogan {
    margin: 0;
    padding: 0;
    padding: 2px 5px;
    color: #FFFFFF;
    background: #444444;
    font-size: 92%;
    position: absolute;
    bottom: 20px; <---- EDIT THIS
    left: 0; <---- EDIT THIS
    }
  12. Edit the lines above to place the image in the position your prefer
  13. Finished