Genius is nothing but great effort applied. – Awa Kenzo

How To: Change Footer Text in Genesis Theme

Ugh. The bottom of Genesis Child-Themes are a pain-in-the-butt. All that pre-filled info is easily customized by using a PHP filter in /child-theme/functions.php

Step 1: Open the functions.php file inside your child-theme folder
/wp-content/themes/child-theme/functions.php

Step 2: Declare your filter

add_filter('genesis_footer_output', 'footer_output_filter', 10, 3);

What we’re doing here is telling WordPress to look for the genesis_footer_output hook, then filter the contents based on a function.

Step 3: Write the function

function footer_output_filter($output, $backtotop_text, $creds_text) {
 $backtotop_text = '[footer_backtotop text="Top of Page"]';
 $creds_text = 'Copyright [footer_copyright] <a href="'. trailingslashit( get_bloginfo('url') ) .'" title="'. esc_attr( get_bloginfo('name') ) .' rel="nofollow"">'.get_bloginfo('name').'</a> &middot; <a href="http://affiliate-link-to-genesis.com" target="_blank" rel="nofollow">Genesis Theme Framework</a>';
 $output = '<div class="gototop">' . $backtotop_text . '</div>' . '<div class="creds">' . $creds_text . '</div>';
 return $output;
}

Full Code:
Copy & Paste the code below into /child-theme/functions.php

add_filter('genesis_footer_output', 'footer_output_filter', 10, 3);
function footer_output_filter($output, $backtotop_text, $creds_text) {
 $backtotop_text = '[footer_backtotop text="Top of Page"]';
 $creds_text = 'Copyright [footer_copyright] <a href="'. trailingslashit( get_bloginfo('url') ) .'" title="'. esc_attr( get_bloginfo('name') ) .' rel="nofollow"">'.get_bloginfo('name').'</a> &middot; <a href="http://affiliate-link-to-genesis.com" target="_blank" rel="nofollow">Genesis Theme Framework</a>';
 $output = '<div class="gototop">' . $backtotop_text . '</div>' . '<div class="creds">' . $creds_text . '</div>';
 return $output;
}

Bonus: Add navigation to the Footer

You might want to add Footer Navigation. To do this we’ll have to create a new WordPress 3.0 Menu.

In the WordPress Dashboard: Appearance –> Menus —> Create Menu

The final output looks like this:

/** Custom Footer */
add_filter( 'genesis_footer_output', 'footer_output_filter', 10, 3 );
function footer_output_filter($output, $backtotop_text, $creds_text) {
 $backtotop_text = '[footer_backtotop text="Top of Page"]';
 $creds_text = wp_nav_menu( array('menu' => 'Footer Nav' ));
 $output = '<div>' . $backtotop_text . '</div>' . '<div>' . $creds_text . '</div>';
 return $output;
}

UPDATE:

The fine folks at StudioPress have released an official plug-in called “Simple Edits” which will allow you to change your footer much easier. http://wordpress.org/extend/plugins/genesis-simple-edits

Greg Rickaby runs on the Genesis Framework

Genesis Framework

The theme you're viewing is the eleven40 Child Theme, which was built on Genesis.

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.

Comments

  1. Gayle says:

    Very cool thanks! Been looking for this information- Thank you!!

  2. Brian H. says:

    Hey Greg, thanks for this post. I’m using the Amped Child theme on a site I’m working on and couldn’t find where to change that text. I did find how to update it in the \wp-content\themes\genesis\lib\shortcodes\footer.php file.

    Or for a faster way, I used the genesis simple hooks plugin.

    Thanks!

  3. Pablo DiCiacco says:

    Ahem! What a convoluted way to have to add footer content. Really, it’s ridiculous. I think if a person plans on user the footer for other things, like additional content, I would just widgetize it and throw stuff in there that way.

  4. I found just modifying two files (footer.php in lib/shortcodes and the footer.php in lib/structure) I was able to get complete control over text, links and arrangement of the footer.

    • Pablo DiCiacco says:

      Kevin,
      Would you be so kind as to share what edits you made to these files to enable your full control.
      Thanks

  5. Joseph says:

    I followed the instructions, but it left an affiliate link in the footer. I tried to take it out, but created a syntax error, so don’t do what I did. I tried going to another site of mine using thesis and cut and pasting the entire function file back in, but it didn’t fix the problem.

  6. Chris says:

    Thanks! This was very helpful.
    I also found that you find and change the footer text and links in the following file:
    \wp-content\themes\genesis\lib\shortcodes\footer.php

  7. John W. says:

    Very nice of you to share ’cause Genesis was driving me to drink.

    It appears you have a “this or that” solution here and I was trying to get a bit of both happening. The child theme I am working on in a sandbox (’cause I kill the site every time when I blindly mess with your code) is Metric.
    I want to add a horizontal menu to the right of the updated copyright.

    Every time I try to take what appears to be the code from the “mid dot” to the and paste it to add a second link, I get an error in line 85.

    Again, the solution you have posted for the footer and menu seems to be “one or the other”.

    Is there a way you can have both which will be better for me because I want to post several links in my footer.

    Thanks,
    John
    (by the way, when I validate the page I get six errors that seem to be Studio Press errors in different areas)

  8. brock says:

    I’m using the executive child theme for genesis. I would like to remove the links on the bottom of this theme could you help me please? These instruction here didn’t help me change the links either.

    Thank you

  9. Marco says:

    Thanks a lot, it’s bookmarked in my #genesiswp folder for future reference!

  10. Daniel says:

    I’m going through the same thing at the moment; getting used to the different ways that Genesis handles certain areas as opposed to Thesis. Thanks for sharing your perspective!

Speak Your Mind

*