After I put up a custom logo (150X200 pixel). The entire "header" block becomes "clickable". The click will link to the front page.

When I inspected with Firebug, my custom logo still within the "logo" class. Now, even after I set the default drupal logo, I still have the same problem. Entire "header" is linked to the front page.

I have not modified the page.tpl.php.

This happened to two websites.

Any idea?

Comments

andregriffin’s picture

Assigned: Unassigned » andregriffin
Status: Active » Fixed

Fixed and to be released in 2.2. I should be done with the other issues shortly, so sit tight and thanks for your patience.

If you wanna get into it yourself, these are the code changes. I've coped below the updated header section of css code, and the updated "header" div in page.tpl.

/**
 * 3.HEADER
 */
#header {
  margin: 0;
  padding: 10px 0;
}

#header h1 {
  float: left;
}

#header #logo {
  float: left;
  padding: 15px 10px 0 0;
}

#header #sitename {
  display: block;
}

#header #siteslogan {
  display: block;
  font-size: .75em;
}

#search-theme-form {
  float: right;
  margin: 2.5em 0 0;
}

#search-theme-form .form-button, #search-theme-form .form-submit {
  margin: 0;
}
      <div id="header">
        <?php print $header; ?>
          
        <?php if ($logo): ?>
          <a href="<?php print check_url($base_path); ?>" title="<?php print check_plain($site_name); ?>">
            <img src="<?php print check_url($logo); ?>" alt="<?php print check_plain($site_name); ?>" id="logo" />
          </a>
        <?php endif; ?>
        <?php print '<h1><a href="'. check_url($base_path) .'" title="'. check_plain($site_name) .'">';
          if ($site_name) {
            print '<span id="sitename">'. check_plain($site_name) .'</span>';
          }
          if ($site_slogan) {
            print '<span id="siteslogan">'. check_plain($site_slogan) .'</span>';
          }
          print '</a></h1>';
        ?>
        
        <?php if ($search_box): ?><?php print $search_box ?><?php endif; ?>
        <div class="clear"></div>
      </div> <!-- /#header -->
jessicakoh’s picture

Thank you. Love it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.