I want the logo to clickable. How do I fix it?

Comments

muhammad.tanweer’s picture

Hi,

You can do that by wrapping the $logo variable inside the page.tpl.php of your theme in an anchor tag. That should work. Code will be something like this.

  if($logo){
    print '<a href="#">'. $logo .'</a>'; // change the # sign with ur desired destination
  }

Hope this works.

Thanks,
Muhammad.
http://www.drupalxpert.com

Ole Martin’s picture

I tried this but got only a clickable link. But I found this point in Page.ptl.php:

* - $logo: The path to the logo image, as defined in theme configuration.

muhammad.tanweer’s picture

Yes exactly. You will need to specify the path of the logo to be used in the theme configuration first. This will set the $logo variable and thats it.. :)

Muhammad.
http://www.drupalxpert.com

Ole Martin’s picture

As a completely unfamiliar with php - css (I can read and change a bit) have I changed to another theme

Jarek Foksa’s picture

Status: Active » Closed (won't fix)

Support for logo image was dropped in 6.x-1.3 release. I'm not planning to bring it back.