Hey all! I developed a pretty unique PHP footer code for a client and thought I would share it here. Basically, it says “Have a happy [DAY HERE]! in your footer, and it changes based on what day it is.
For those who use a different framework or stand alone wordpress themes, you will need to modify it. One code like this may not work across different themes so I didn’t want to make a code and say it was universal, because that would be foolish.
REMINDER: Whenever you are editing the PHP code of a live WordPress website, you MUST do it through FTP. If you do it from the standalone WP editor, the website will crash if you make a mistake and you will not be able to log on and correct it.
//* Customize the entire footer
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'sp_custom_footer' );
function sp_custom_footer() {
?>
<p>Copyright © 2017 · Have a happy <?php echo date('l'); ?>!</p>
<?php
}