Hi,

I created a php block with the logo as shown below. When I click the logo from other pages, it does not take me to home page. Instead, it takes me to current page.

<a class="logo" href=""  title="<?php print t('Home'); ?>">
        <img src="<?php $logo1 = "sites/default/files/LOGO.png";
		print $logo1; ?>" alt="<?php print t('Home'); ?>" />
      </a>

Thanks.

Comments

drupalfriend123’s picture

Never mind. I just had to write href = "node/3".

VM’s picture

to others that may find this thread at a later date, there is NO reason to use PHP in a block for this feature. Avoid putting php in your database.