How to Customize Genesis Site Footer Text

How to Customize Genesis Site Footer Text

wprocket

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>® &middot; Made with <i class="fa fa-heart"></i> in Canada &middot; Design by <a href="https://rainastudio.com/" target="_blank">RainaStudio</a>', 'genesis');
  if($lastDate == $firstDate) $creds = "© $firstDate " .$text;
  else $creds = "© $firstDate " .$text;
  return $creds;
}

 

GenesisPro728x90

Facebook
Twitter
LinkedIn
Pinterest
Tumblr
Anwer Ashif

Anwer Ashif

Founder of RainaStudio. Help businesses and individuals to create and outstand their online presence. Our success rate is measurable. Our blog served all around the world and counting.

Leave a Reply

Your email address will not be published. Required fields are marked *