Welcome, Guest. Please login or register.
Did you miss your activation email?
March 18, 2010, 07:43:55 PM

Login with username, password and session length
Search:     Advanced search
Please Read - How to Get Help!

Participate in the forum and earn Great Rewards!
52074 Posts in 14868 Topics by 127584 Members
Latest Member: omerfarukhan
* Home Help Login Register
+  Joomlashack Customization Forum
|-+  Joomlashack Shack Packs
| |-+  Joomla for Schools
| | |-+  Using an image-based logo instead of text
« previous next »
Pages: [1] Print
Author Topic: Using an image-based logo instead of text  (Read 17315 times)
JSSupport
Hero Member
*****
Offline Offline

Posts: 4499


« on: June 24, 2007, 07:25:45 PM »

There are two ways to do this. You can use an image or the existing text.

To use an image, follow the steps below:

If you look in your template_css.css file you'll see:

Code:
/* $2 - Header Styles */

Just below that you'll see a few classes; .header-logo, .header-logo h1 a, and .header-logo h2

Change these to read:

Code:
.header-logo {
height:111px;
padding:0px;
}
.header-logo h1 a {
color: #FFF;
padding:0;
margin: 0;
text-decoration: none;
display: block;
width: 360px; /* You can set the width here */
height: 110px; /* Maximum height is 110px */
text-indent: -5000em;
background: url(../images/header-logo.png) no-repeat left center;
}
.header-logo h2 {
color: #8C0000;
padding:0;
margin: 0;
width: 0px;
height: 0px;
display: none;
text-indent: -5000em;
}

Save and upload. You'll see the image appear:



You can create your own using the attached source file.

Logged
Bassman
Jr. Member
**
Offline Offline

Posts: 1


« Reply #1 on: June 26, 2007, 07:28:45 AM »

Just one question- thanks för the logo. When it´s uploaded the upper part is not close to the upper border of the header.
I´m trying to reduce the hight but its just the lower part of the logo I can adjust.
http://timereg.se
Logged
Granger
Jr. Member
**
Offline Offline

Posts: 3


« Reply #2 on: December 03, 2007, 11:26:16 PM »

I've been trying this, but I don't get the images.  Any advice?


http://www.lagrangehighschool.org/

There are two ways to do this. You can use an image or the existing text.

To use an image, follow the steps below:

If you look in your template_css.css file you'll see:

Code:
/* $2 - Header Styles */

Just below that you'll see a few classes; .header-logo, .header-logo h1 a, and .header-logo h2

Change these to read:

Code:
.header-logo {
height:111px;
padding:0px;
}
.header-logo h1 a {
color: #FFF;
padding:0;
margin: 0;
text-decoration: none;
display: block;
width: 360px; /* You can set the width here */
height: 110px; /* Maximum height is 110px */
text-indent: -5000em;
background: url(../images/header-logo.png) no-repeat left center;
}
.header-logo h2 {
color: #8C0000;
padding:0;
margin: 0;
width: 0px;
height: 0px;
display: none;
text-indent: -5000em;
}

Save and upload. You'll see the image appear:



You can create your own using the attached source file.


Logged
coachfubu
Jr. Member
**
Offline Offline

Posts: 1


« Reply #3 on: February 14, 2008, 02:25:30 PM »

HELP!!! I've tried every post on this site. Help is needed.

www.titansaap.org/TAAP

My logo will not show.

My index.php:

Code:
<div class="header-logo">
<h1><a href="<?php echo $mosConfig_live_site;?>/index.php?option=com_frontpage&amp;Itemid=1" title="<?php echo                                                                                    $mosConfig_sitename?>">Education</a></h1>
<h2>Template Demo</h2>
</div>

My template_css.css:

Code:
/* $2 - Header Styles */

.header-logo {
height:111px;
padding:0px;
}
.header-logo h1 a {
color: #FFF;
padding:0;
margin: 0;
text-decoration: none;
display: block;
width: 360px; /* You can set the width here */
height: 110px; /* Maximum height is 110px */
text-indent: -5000em;
background: url(../images/header-logo.png) no-repeat left center;
}
.header-logo h2 {
color: #8C0000;
padding:0;
margin: 0;
width: 0px;
height: 0px;
display: none;
text-indent: -5000em;
}

Logged
Kara Hill
Jr. Member
**
Offline Offline

Posts: 5


« Reply #4 on: March 12, 2008, 09:45:22 PM »

It certainly looks right.  Are you sure you put your image in the right 'images' folder.  You do not use Joomla's Media Manager, you need to FTP to
templates/js_education/images/xxx.jpg

If you were messing with the index.php and template_css.css files a bit, you may want to go back to the original files and start over.
Logged
estice
Jr. Member
**
Offline Offline

Posts: 6


« Reply #5 on: June 30, 2008, 08:47:14 PM »

Hello

I am using the Joomla School Shack Pack (Joomla! 1.0.13) and my site can be seen here:

http://www.phoenixms.org/

I used the code posted here to change the header of the school site I’m working on (Thanks!). The header (with my logo) looks fine when using IE 7 but when viewing in Firefox (2.0.0.14), Safari, AOL, and IE on a Mac, the text sizing buttons end up on the left side and the main menu items don’t show or work correctly.

Can anyone please help?
Logged
dt8
Jr. Member
**
Offline Offline

Posts: 2


« Reply #6 on: July 16, 2008, 08:23:00 PM »

Ok, I've gotten the logo to appear, but I have two problems.

I would like a larger logo than 110px height.

I would like to remove the Text Header that (in my case) reads "Education Template Demo"

Any suggestions?

Thx,
Drew
Logged
McMastertwist
Jr. Member
**
Offline Offline

Posts: 1


WWW
« Reply #7 on: August 13, 2008, 02:56:47 AM »

everything right, no problems, thx =)
Logged

josephmethew
Jr. Member
**
Offline Offline

Posts: 1


« Reply #8 on: August 07, 2009, 01:55:25 AM »

Hi...................



I would like a larger logo than 110px height.

I would like to remove the Text Header that (in my case) reads "Education Template Demo"

Thanks.

Jerry.

pass saliva drug test
<a href="http://www.ASMARTSOURCEADDITIVE.com ">beat drug test[/url]
pass marijuana drug test
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
 

About Joomlashack | Privacy Policy | Terms of Service | Powered by Joomla | Affiliates | Contact Us

Joomlashack designs free and commercial Joomla Templates and Joomla Websites
Learn how to Joomla with our Joomla Tutorials or join our Joomla Template Club
Copyright 2005-2009 Joomlashack. All rights reserved unless otherwise stated.
The Joomla! name is used under a limited license from Open Source Matters.