Display an image through page.tpl.php only on front page 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:

&lt;?php  if (drupal_is_front_page())
    {
        &lt;div id ="join"&gt;
           &lt;a href="/node/38"&gt;&lt;img src="/sites/all/themes/ypwb/joinb.png"&gt;&lt;/a&gt;
        &lt;/div&gt;
    }
?&gt;
Rather than editing in page.tpl.php which applies on all pages, you should create a template file called page--front.tpl.php and add image there if you want to display the image only in front page.

EDIT

For more theme hook suggestions refer this page