Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.