I want to display an image only on front page through page.tpl.php... However i am not sure about the syntax or where i am going wrong as the code that i type in leads me to en error (syntax error)...here's the code:
<?php if (drupal_is_front_page())
{
<div id ="join">
<a href="/node/38"><img src="/sites/all/themes/ypwb/joinb.png"></a>
</div>
}
?>
?>
after the opening parenthesis and<?php
before the closing parenthesis. This is so-called embedding HTML in a PHP page.