cancel
Showing results for 
Search instead for 
Did you mean: 

php in copyright to display year

php in copyright to display year

Perhaps I'm missing something here. I've got <?php echo date("Y"); ?> in the copyright section of the footer but it's not displaying the year. Does anyone know why this php statement isn't being executed?

1 REPLY 1

Re: php in copyright to display year

Hi @ckrauskopf

 

If you are using the copyright field the in admin, the PHP statement wont be evaluated. This would pose a really big security risk to your entire setup if you could write executeable code from the admin of Magento. You need to add this through the template. Properly in the footer.phtml file, it will most likely be in your template under: template/page/html/footer.phtml or somewhere close.