I am trying to add a custom logo to the Dreamy theme - www.contact.ie.

I have unchecked the "Use Default Logo" box.
I have used the "Upload Custom Logo" feature.
I have tried "Path to Custom Logo".

All have failed.
Here is the logo I wish to use: http://www.contact.ie/External/dreamy_logo.png

Comments

nevets’s picture

The theme has a header section, what does that part of the page.tpl.php look like. There is no indication it is even trying to output a logo.

markconroy’s picture

<div id="header">
			<?php if (strlen($site_name) > 0) { ?><h1 class='site-name'><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?>
			<?php if (strlen($site_slogan) > 0) { ?><div class='site-slogan'><?php print $site_slogan ?></div><?php } ?>
			<?php print $search_box ?>
		</div>

============

Drupal Core Maintainer for "Out of the Box" Initiative.

nevets’s picture

From the garland theme the page.tpl.php needs something like

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

for the logo to show.

markconroy’s picture

Div id header now looks like this, but still no logo showing:

<div id="header">
			<?php if (strlen($site_name) > 0) { ?><h1 class='site-name'><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?>
			<?php if ($logo) {
              print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
            } ?>
			<?php if (strlen($site_slogan) > 0) { ?><div class='site-slogan'><?php print $site_slogan ?></div><?php } ?>
			<?php print $search_box ?>
		</div>

============

Drupal Core Maintainer for "Out of the Box" Initiative.

nevets’s picture

You have your logo path defined so Drupal thinks it is at /http://www.contact.ie/sites/default/files/dreamy_logo.png So if you uploaded the file maybe files is not writable.

markconroy’s picture

Thanks again for the help.

I've made the files writeable and nothing happened. I've also changed the custom path to:
http://www.contact.ie/External/dreamy_logo.png but still nothing has happened. Do I need to change my php in my header if I'm using the second option.

Mark C.

============

Drupal Core Maintainer for "Out of the Box" Initiative.

mightypile’s picture

I've dealt with this same problem several times.

The issue starts with a theming decision that I find strange, to preface the url to your icon with the $base_url string stored in your settings.php file. If you don't set it, I believe it ends up being a backslash.

So, you can't use a full url for the icon path. I used to try using "http://www.example.com/somelogo.png" and never had any luck. The actual url in the resulting page was "/http://www.example.com/somelogo.png" which screwed up the whole thing. But when I copied the file to my site's files path, I could enter "sites/default/files/somelogo.png" and the logo would show up fine.

I hope this clears things up for you.