I would like to use this script (found here), but it generates a blank page when I add it to my header.php
if ( is_home() ) { ?>
<meta name="description" content="Your home page meta description" />
<?php } else { ?> <meta name="description" content="Your none homepage meta description" />
<?php } ?>
Thank’s!
I just tried it with this code and it all worked as it should:
You want to be sure there’s not a space between
<?
andphp
(<?php
).