I'll start by saying that I'm a newbie...

I've tried to change logo in garland theme for some time now but has not yet succeeded. I've tried different image sizes (also exact same size as the original logo), .png and .gif files, upload through ftp and upload through image upload function inside Drupal, changed permissions on files folder but still no custom logo. Can someone please help?

My Drupal site is hosted by one.com.

/Olof

Comments

drapichrust’s picture

I'm also a newbie... but i have managed to change logo :D

I'm not sure but I think that you have changed colors for your theme. If it's true than your logo had been generated from file base.png. It is image of all gradients in this theme. So your logo.png file from themes directory is no longer used. The best thing you can do is check some handbooks about themes...

Sorry for my English ;)

uzbekjon’s picture

That's if he is using Drupal 5, right ?

I didn't see any options to change theme colour in Drupal 4...

-------------------------------
Sites for uzbeks and Uzbekistan:
Uzbek Lyrics Database
Uzbekistan Forum

olof-1’s picture

I have not changed the colours for my theme. Will do that later but want to get the logo working first.

uzbekjon’s picture

If drapichrust's solution does not help, try to Force Refresh the content in your browser. CTRL+F5

Your browser might be serving you from its cache...

-------------------------------
Sites for uzbeks and Uzbekistan:
Uzbek Lyrics Database
Uzbekistan Forum

olof-1’s picture

I've tried that too.

XiangXiang’s picture

Administration - THEMES - Configure - garland -
Logo image settings -
Disable "Use the default logo"
And then either choose path to custom logo or upload your own logo

Tried that?
o.o

olof-1’s picture

Yes, tried that too. Both upload through ftp and manually enter path and upload through Drupal upload (with disabled "Use default logo".

RMDTech’s picture

I actually get the same problem but more on the scale of Drupal is not recognizing the image as an image. Haven't figured out why it does that though.

vijayface’s picture

just replace your new logo with old one in your theme file with the same name.
i hope it works
reply me

olof-1’s picture

Yes, I'll try that and get back to you.

olof-1’s picture

I tried to replace the default theme logo (located in /themes/garland/) with my logo. I used the same file name and it worked fine. I also tried to upload once more through ftp and Drupal upload but it still doesn't work. I can see the uploaded logo file in the files directory but no change in the Drupal website (after refresh...). Strange! Can it have something to do with .htaccess file in files directory? As I said earlier, my host is one.com. Perhaps someone recognises the problem.

RMDTech’s picture

Well it works but it messes up my logo that I have making it underneath the search field. I guess I will have to figure it out myself although may actually use a different theme anyway. thanks for getting it to work though.

pfiguero’s picture

I had the same problem. I solved it by commenting two lines at the .htaccess file in the files/ directory:

#Options None
#Options +FollowSymLinks

I guess it is equivalent to deleting such a file... ;) Although, I would like to know if this causes security problems.

hirstd68’s picture

Swapping the default theme logo file works but nothing else does. I'm running a local server on an XP machine. My colleague has had no issues on a local Mac server. Yeah, yeah, I know....

Any XP-specific solutions?

heze54’s picture

I commented with # those lines but still have the same problem with logo and favicon.

What can I do?

Running 5.2 under apache 2.2.3

lucacerone’s picture

I'm having the same problem under Ubuntu 7.10.
If you have a look at the page code, after saving the settings,
you can recognize that it looks for garland_logo.jpg again.
But I can't understand why it shows my site name instead of the logo.

Anyone has found a solution?

lucacerone’s picture

I'm having the same problem under Ubuntu 7.10.
If you have a look at the page code, after saving the settings,
you can recognize that it looks for garland_logo.jpg again.
But I can't understand why it shows my site name instead of the logo.

Anyone has found a solution?

I think it could be a matter of sizes!!
(my picture is bigger than garland's one...)

dotaloc’s picture

I was having the same problem...I was trying to use a custom logo and being shown my site name as text instead.

I'm a newb...and was doing a port of an older website to drupal to learn and maybe to implement

(postnbeam.com TO drupal.postnbeam.com <-- for now)

Anyway, I finally just right clicked the logo and saw that it was looking in the wrong place...erm...because I had specified for it to look in the wrong place. So I realized what it was considering 'root' and when I put the correct relative (couldn't get it to work with static link) link, it worked perfectly. My size was close to, but not exactly the same as the original.

Hope this helps someone.

jamescarvin’s picture

I've tried a number of solutions. I'm running drupal 5.7 on my development server and 6.1 on the site I'm having trouble with. I've uploaded the image to my own images directory below the garland folder, and into the images directory that's in the themes folder in garland.

Interestingly, it captured an old logo I had when I uploaded to my regular images folder - root/images/

It took some time for my favicon to load up too.

So my theory is that there is a cron job that must be loading up logos and favicons occassionally based on your saved settings, but that those settings don't actually take effect until the scheduled cron. It appears that way in 6.1 anyway.

I also tried replacing the default logo logo.png First I tried the themes/garland/images/logo.png file.j This had no effect. The default was back to the drupal icon. So the system somehow preserved the image even though it had been changed.

It might be a cool thing for making sure no one slips porno onto your site somehow, so long as you can review temp files, if that's where they are going. but I'm only about 10% confident that the problem relates to a cron job, (probably half written). It just seems to exhibit that behavior.

The other possibility is that I had the file location wrong. Of course, why should the default logo be in a theme folder at all? It seems to be hidden somehow. The path the default drupal icon has for my site is http://www.example.com/default/files/color/garland-9c0ef6c4/logo.png . Well, there is no such folder as "default". This is obviously being created on the fly. What's curious is where it is stored.

Oh well. mystery still unsolved. I'll have to wait a few days to see if my changes go into effect. Meantime, I'll be working with 5.7.

As to the 5.7 … I actually got it to work, at least on my development server, after I copied my web files into my drupal folder. But alas, as soon as I changed my site info, suddenly it disappeared. Turns out it comes back if I change the Site Name back to Drupal. Of course, that won't do. I don't want the Drupal name on my site any more than I want the logo. Hmmmm.

Ahaaahhh! It WILL let me change the name, just not to anything longer than a few letters. The name "Drupal" is short. Now what will I do about the fact that my company name is long?

Supermarket Green News
SMGN works, but it isn't very explanatory.

And another ahaaaahhh! If I reduce the width of my window the logo disappears - obviously because its being squeezed down into a second line. Ahaaaaahhh!

Solution for Now: Use a different theme - the one I just installed works fine on the dev server anyway, probably because it uses smaller text. Give it a few days and it should be live so you can see!

Suggest a Project: try to find a module for long names that fits lengthy text into a screen by reducing Title and Motto font size for garland

James
Newbie here. Really all I want is to make fast web sites mostly, but with some power features and have the ability to customize, not just design, but processes, such as eCommerce features, and subscription based user levels.

one brain cell’s picture

I'm boosting this thread because my boss has set me the task of getting the website up and running. But I'm having trouble changing the logo in the Garland theme for our own using Drupal 6.

In themes/Garland/config. I've unchecked 'use default logo' and uploaded my own. One of two things happens. The Garland logo doesn't change or it changes to the page title. I've tried changing the image size, making the image a transparent .png..... You can see a pic http://img182.imageshack.us/img182/9577/image2qi0.jpg

Additionally, the first time I uploaded our logo, I could see it in the file browser on the website. The file would be in sites/default/files and when I clicked on it, our logo would show up in the box below. However, now the image doesn't show up. The box below just contains the file name in blue lettering. I may not be explaining myself very well so here's a pic http://img139.imageshack.us/img139/9085/image3wh2.jpg (yes, I know there's no files in the file browser in this pic). I thought maybe I'd changed a setting somewhere along the lines, but I don't know what it could be.

So I really don't know what to do. This is my first time doing website work and my first time using Drupal. Any suggestions would be appreciated greatly!

pankajshr_jpr’s picture

Goto the administrator-theme section click on configure then first disable the use default logo option and upload logo in global settings then goto the your theme section and do the same. hope it works

japester’s picture

Sadly, this is still an issue for me in June 2009.
I've just installed a shiny new drupal install and the garland theme is about to be thrown out.
The only way I've been able to get a custom logo to work is to replace the default logo with my own. This solution is not feasible for me, because I run a couple of sites out of the same install.

The theme is detecting my logo, as the html output shows something :

japester’s picture

Finally worked out how drupal sources the URL for a custom logo. (After discovering that no themes displayed my logos)

The logo file has to be somewhere inside the drupal code directory. If you have a private file store that is somewhere else, then it won't be found.

A workable solution is as follows:
With the drupal code in /usr/share/drupal and my filestore in /var/lib/drupal//

1. Drupal creates (or asks you to) a directory inside the sites directory for your configuration - (/usr/share/drupal/sites//files
2. Configure for private files and set that to /var/lib/drupal//
3. rm -rf /usr/share/drupal/sites//files
4. ln -s /var/lib/drupal// /usr/share/drupal/sites//files/
5. Upload your logo to /var/lib/drupal//logo.png
5. Configure your theme's custom logo with the path "sites//files/logo.png
6. Profit!

Penelope81’s picture

Hi,

I'm using drupal 6 and I have just tried to replace the theme logo with my own logo through admin/build/themes/settings then clicking on the configure tab. What happened is that my logo took over the whole page and everything else disappeared even the configuration page. The only thing I can see is the left nav bar and the primary links at the very top.

Any ideas how I can fix this would be much appreciated =)

vijayface’s picture

In your themes folder you can see the file "page.tpl" open this file and see the following lines

if ($logo) {
              print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
            }

and replace with following lines

  if ($logo) {
              print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" width="100px" height="100px" />';
            }

--- Here we have width="100px" height="100px". This will control your image size..

Hope this helps to fix your issue...

DerekLitz’s picture

Hi, what I did to fix this is based off of japester's solution except it was much more simple.

1. Put your logo image anywhere inside 'path'/drupal/sites/all

This is the same place you should have your added themes and modules (the ones that aren't part of the core).

2. Change the theme logo link to /sites/all/'link to image file'

ljesposito’s picture

I'm using the Garland Theme in 6.14 and the default logo works fine as does another that I added but when I tried to switch to a third, not only does the logo vanish but so does the Slogan. My hunch is that the new logo is too big in some regard.
The new logo from the Microsoft Office Site has the following properties:
File name: j0433121.jpg
Media type: Photo
Dimensions: 1050 (w) x 697 (h) pixels
Resolution: 150 dpi
File size: 397 KB
Is it possible to easily change the dimensions (WxH) of the clip art and if so how (Vista Business OS)?
And is there a way to find out what the technical limits (WxH) are for the Garland logo?

Thanks,
Larry Esposito

ljesposito’s picture

I checked out my other custom logo that was working and it was 120x120 so it seemed that my hunch may have been correct since the problematic clip art was almost 10x as big! so I used the MS Paint Tool to reduce the size to 30% and then reducing the result to 30% getting it down to 117x87 and guess what, it worked!!!

I hope this helps others. I'm not sure if it was mentioned in earlier posts. If it was, I must have missed it.

Thanks,
Larry Esposito

open24hours’s picture

I had a similar problem described in these posts - couldn't get Garland theme to display my logo.

THEME CONFIGURATION

[√] Logo (checked)
[ ] Use the default logo (not checked)
Path to custom logo: sites/all/themes/Your_Theme_Directory_Name_Here/images/your_logo_filename.[png, gif, jpg]

DISCUSSION

The problem for me was, incorrect path to my custom logo file.

Drupal needs the path from the "sites" directory. I put my logo in the images sub-directory, but that's not required. You can put it in the your theme directory if you prefer. Since I am customizing the Garland theme, I am working on a copy of it, not Garland itself. For this example, let's call my customized Garland theme; "My-garland".

Here's the path that I used and it worked for me: sites/all/themes/My-garland/images/my_logo.gif

SINGLE SITE

I'm working on a single-site instance of Drupal. The fix for multi-site may be different.

ronnienorwood’s picture

I just stumbled across this thread but wanted to add my experience in case it could help someone. pfiguero mentioned the 2 lines of code in the .htaccess file on the sites/default/files directory. I had added a line of code under those 2 lines of code to this file on my localhost awhile back to try to fix another problem and was running into the same issues as many of you the other day when I migrated my site from my localhost to production - the system did not recognize the logo file and did not render the page correctly when I changed the garland theme to a non-default color scheme. Everything works fine now that I removed the line I added.

Tzah’s picture

I had the same problem and I found that there is a bug in the theme
Do this:

go to the theme settings under appearance and scroll down, you will see you will have the same option to replace the logo and icon just like the one you had on the setting tub. change it there too

worked for me v.7.14, xp

Good luck