Logo

phasar - October 6, 2006 - 12:03
Project:Andreas03
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I really like this theme and would like to use it, but I want my logo to appear in the grey box instead of text. How can I do this?

Thanks
Frank

#1

Dublin Drupaller - October 6, 2006 - 12:53

You need to open up the page.tpl.php file in a text editor like notepad.exe (I use pspad and insert the print logo instruction where you want the logo to appear.

I don't use this theme, so this is just a guess...but in the andreas 03 page.tpl.php file, you can change this:

<div id="logo">
<h1>[<a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a>]</h1>
<span id="tagline"><?php if ($site_slogan) { ?><h2><?php print $site_slogan ?></h2><?php } ?></span>
</div>


to something like this:

<div id="logo">
<?php if ($logo) { ?><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?>
<span id="tagline"><?php if ($site_slogan) { ?><h2><?php print $site_slogan ?></h2><?php } ?></span>
</div>

The snippet to display a logo in your page.tpl.php file is:

<?php if ($logo) { ?><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?>

And you set the logo on the ADMINISTER -> THEMES page.

hope that helps

Dub

 
 

Drupal is a registered trademark of Dries Buytaert.