I am using the Corolla theme for a Virtual Sites installation and although virtual sites is supposed to adapt the 'home' link attached to the header logo, I am unable to get this to work and it consequently links to the root of the domain, which is unacceptable for my purposes.

I would be quite happy to disable the link attached to the header logo as I will have a 'home' link on the page. I remember doing this with the theme I was using with the Drupal 6 version by altering the page.tpl.php but couldn't find any similar code in the Corolla page.tpl.php and I don't want to break it!

Could anyone please tell me how to disable this link, if it is at all possible?

Thanks in advance.

Comments

Jeff Burnz’s picture

So you just want to print the logo, but without the link, is that right?

Find these lines of code in the page.tpl.php file:

<?php if ($linked_site_logo): ?>
  <div id="logo"><?php print $linked_site_logo; ?></div>
<?php endif; ?>

And replace them with these:

<?php if ($logo_img): ?>
  <div id="logo"><?php print $logo_img; ?></div>
<?php endif; ?>
hecate’s picture

Status: Active » Closed (fixed)

Exactly what I wanted.

Thanks for providing the solution so quickly Jeff.

crutch’s picture

Issue summary: View changes

update method for d7

sometimes there may be a separate but related site where the logo needs to link back to the main site

crutch’s picture

d7 adaptivetheme/at_core/inc/preprocess.inc

~line 143

      if (at_get_setting('logo_title') == 1) {
        $vars['site_logo'] = $vars['logo_img'] ? l($vars['logo_img'], 'http://www.mysite.com', array('attributes' => array('title' => $logo_image_alt), 'html' => TRUE)) : '';
      }
      else {
        $vars['site_logo'] = $vars['logo_img'] ? l($vars['logo_img'], 'http://www.mysite.com', array('html' => TRUE)) : '';
      }