• Home
  • Project
  • Slider
  • Custom Website Design
  • Services
  • Social Media
  • Blog
  • Contact
    • Request a Quote

Areuconnected.com

Just another WordPress site

  • Home
  • Code Snippets
  • Genesis
You are here: Home / Code Snippets / Customizing Genesis Footer Content

Customizing Genesis Footer Content

July 6, 2011 by onnoysomoy Leave a Comment

Sometimes need to change the Genesis‘s default content on demand of client to show clients requirement (i.e. footer logo, remove back to top, credential change, add footer link).

 NOTE: When writing your own code/filters, use a child theme. Do not write to the default functions.php file in Genesis. It will overwrite on updates.

See below for codes I wrote to change Genesis Footer Content on child themes.

Customize the footer creds text

add_filter('genesis_footer_creds_text', 'auc_footer_creds_text');
function auc_footer_creds_text($creds) {
    $creds = '©' . date('Y') . ' '
    . get_bloginfo('name') .
    '. All rights reserved. Powered by <a href="http://wordpress.org/">WordPress</a>.';
    echo $creds;
}

Remove Footer Content

This will remove the footer credits text and ‘back to top’ link.

add_filter('genesis_footer_output', 'footer_output_filter', 10, 1);
function footer_output_filter($footer_content) {
    $footer_content = '';
    return $footer_content;
}

Add a WordPress Custom Menu in Custom Footer.

This will remove the default footer with credit text and Back to Top and add a WordPress custom navigation menu.

remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'auc_do_footer' );
function auc_do_footer() {
  $creds = '© Copyright '. date('Y') . ' ' . get_bloginfo('name') . ' . All rights reserved.';
  $footernav = wp_nav_menu( array('menu' => 'footer' ));
  echo $footernav;
  ?>
  <p class="creds"><?php echo $creds; ?></p>
<?php }
Filed Under: Code Snippets, Genesis Tagged With: ADD_FILTER, COPYRIGHT, FOOTER CREDS, genesis, GENESIS_FOOTER_CREDS_TEXT, PHP, WordPress

Speak Your Mind Cancel reply

*

*

Recommended Hosting

cpanel shared hosting

Company info

  • Home
  • About
  • Portfolio
  • Services
  • Qoute Us
  • Contact Us

Receive great tips via email

Our Partners

  • partners
  • partners
  • partners
  • partners

Top Stories

  • Removing genesis post_info from a Single or multiple Category
  • Insert custom content after single post
  • How to Add an Additional Wrap on Genesis Child Theme
  • Genesis Framework – Footer
  • Customizing Genesis Footer Content

Valid XHTML 1.0 Transitional