Make changes to  for homepage only I need to insert hreflang tags in the head tags, but I only need these on the homepage. At the moment I'm inserting the hreflang tags into the head via the html.tpl.php template, but this puts the code on all pages in the site. How can I edit the head for just one page? I'm using Drupal 7.
You can use: 

&lt;?php if ($is_front): ?&gt;
 &lt;!-- code here--&gt;
&lt;?php endif; ?&gt;


In your html.tpl.php and it'll only affect the homepage.