Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want the logo to clickable. How do I fix it?
I want the logo to clickable. How do I fix it?
Comments
Comment #1
muhammad.tanweer CreditAttribution: muhammad.tanweer commentedHi,
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.
Hope this works.
Thanks,
Muhammad.
http://www.drupalxpert.com
Comment #2
Ole Martin CreditAttribution: Ole Martin commentedI 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.
Comment #3
muhammad.tanweer CreditAttribution: muhammad.tanweer commentedYes 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
Comment #4
Ole Martin CreditAttribution: Ole Martin commentedAs a completely unfamiliar with php - css (I can read and change a bit) have I changed to another theme
Comment #5
Jarek Foksa CreditAttribution: Jarek Foksa commentedSupport for logo image was dropped in 6.x-1.3 release. I'm not planning to bring it back.