Y is showing wrong year
-
Hello, thank you for your help!
My copyright footer is saying 2018, not 2021.
The code I have used is:add_action( ‘init’, ‘custom_remove_footer_credit’, 10 );
function custom_remove_footer_credit () {
remove_action( ‘storefront_footer’, ‘storefront_credit’, 20 );
add_action( ‘storefront_footer’, ‘custom_storefront_credit’, 20 );
}function custom_storefront_credit() {
?>
<div class=”site-info”>
© <?php echo get_bloginfo( ‘name’ ) . ‘ ‘ . get_the_date( ‘Y’ ); ?>
</div><!– .site-info –>
<?php
}Everything seems to be up to date and the timezone/date format is correct.
Any ideas?
Thanks again,
Emily.The page I need help with: [log in to see the link]
The topic ‘Y is showing wrong year’ is closed to new replies.
