Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to display an image in the page footer using tag. In my page.tpl.php I have the following block.

<div id="copyright">
    <img src="../images/logo.png">
     <p class="copyright"><?php print t('Copyright'); ?> &copy; <?php echo date("Y"); ?></p>
    <div class="clear"></div>
</div>

I can`t use print $logo since I can use another image for the logo.

share|improve this question
1  
Please edit the title, is confusing. – Pere Feb 26 '13 at 23:17

You need to call the current theme URL and concatenate it with your alternative logo

<div id="copyright">
    <img src="<?php print drupal_get_path('theme', 'THEME_NAME'); ?>/images/logo.png">
     <p class="copyright"><?php print t('Copyright'); ?> &copy; <?php echo date("Y"); ?></p>
    <div class="clear"></div>
</div>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.