You have probably seen many websites that have custom footers on their pages. But what if you wanted to customize yours? In this article, we’ll show you how to do just that. Customize the Genesis Framework site footer’s text with this code snippet. Copy and paste the code into your finctions.php file.
// Customize the footer section add_filter('genesis_footer_creds_text', 'bdfg_footer_creds_text'); function bdfg_footer_creds_text($creds) { global $wpdb; $table = $wpdb->prefix . 'posts'; $lastDate = date('Y'); $firstDate = $wpdb->get_var("SELECT YEAR(post_date) FROM $table ORDER BY post_date LIMIT 1"); $text = __('<a href="https://wealthylevelup.com/">WealthyLevelUp</a>® · Made with <i class="fa fa-heart"></i> in Canada · Design by <a href="https://rainastudio.com/" target="_blank">RainaStudio</a>', 'genesis'); if($lastDate == $firstDate) $creds = "© $firstDate " .$text; else $creds = "© $firstDate " .$text; return $creds; }