Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By drupalfriend123 on
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
Never mind. I just had to
Never mind. I just had to write href = "node/3".
=-=
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.