Automatically update copyright year

Support desk for Multipurpose Quark Theme
GK User
Thu Mar 24, 2016 10:50 am
Is there a way to automatically update the copyright date? Can we do this from the admin panel under templates / Footer Elements/ copyright or does this have to be done somewhere else?

Thanks!
User avatar
Senior Boarder

GK User
Tue Mar 29, 2016 7:20 am
Hello,

Unfortunately if you are using the copyright option from the template back-end - it is not possible. But if you put manually your own copyright content in the layouts/blocks/footer.php file then you can replace the current year with the following code:
Code: Select all
<?php echo date('Y'); ?>
User avatar
Moderator


cron