That's PHP code, and belongs in template files. So add it to your custom ez-page template file: tpl_page_default.php