Created
November 22, 2017 11:35
-
-
Save adrelliott/e5d663222f93196f54ad955ccf69fc47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this to the bottom of your functions.php file in your child theme. | |
// (Not using a child theme? You're a fool! Follow these instructions now, or next time | |
// you update, your changes could be overwritten: | |
// https://thrivethemes.com/tkb_item/how-to-set-up-a-thrive-child-theme/ | |
/** | |
* Shortcode that generates the 'copyright' statement for the bottom of each page | |
* (also inserts the right year!) | |
*/ | |
add_shortcode('dm_copyright', 'dm_generate_copyright'); | |
/** | |
* Returns the right date and a copyright statement | |
* $attributes = NULL | |
*/ | |
function dm_generate_copyright( $attributes ) { | |
// IMPORTANT! Change the words 'Dallas Matthews' below for your company name (or your own name)! | |
return "© Copyright " . date("Y") . " Dallas Matthews"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment