Dear Drupallers!

We want our headbanner "clickable".. How do we do this?

If a user click on the logo we want to send him to our homepage http://www.apartmentinrio.net/

Is it in the CSS file we need to change this?

Isak

Comments

WorldFallz’s picture

Probably needs to be added in the page.tpl.php file of your theme.

shadcn’s picture

right on. goes into your page.tpl.php in your theme directory

there you go :

print '<h1><a href="'. check_url($front_page) .'"><img src="img path here" id="logo" /></a></h1>';
prisonbreaker82’s picture

Thank you for your fast reply, but I can not work it out.. I looked in the source and it writes out the following in the source code.

<h1><a href="/"><img src="/img/headerimage.jpg" id="logo" /></a></h1>

I added the line as you told me in the "page.tpl.php";

<body class="<?php print $body_classes; ?>">
  <div id="page">
    <div id="header">
<b><?php print '<h1><a href="'. check_url($front_page) .'"><img src="/img/headerimage.jpg" id="logo" /></a></h1>'; ?></b>
      <div id="logo-title">

        <?php if (!empty($logo)): ?>
          <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
            <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
          </a>
        <?php endif; ?>

        <div id="name-and-slogan">
          <?php if (!empty($site_name)): ?>
            <h1 id="site-name">
              <a href="<?php print $front_page ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
            </h1>
          <?php endif; ?>
          <?php if (!empty($site_slogan)): ?>
            <div id="site-slogan"><?php print $site_slogan; ?></div>
          <?php endif; ?>
        </div>
shadcn’s picture

is headerimage.jpg in folder img in root folder? i think if you place it in your theme (lets say under img) and then use this

<b><?php print '<h1><a href="'. check_url($front_page) .'"><img src="<?php echo drupal_get_path("theme","your theme name here"); ?>/img/headerimage.jpg" id="logo" /></a></h1>'; ?></b>