How to Edit or Remove Genesis Footer?

In standard WordPress themes, footer.php file contains the credits. But in Genesis and its child themes, the functions.php file does the part. Genesis renders the credits by using the following action:

do_action( 'genesis_footer' );

Most of the times, the footer credits are automated and have the format like

© 2024. Gaurav TiwariGenesis Framework | Log In.

Certainly, a lot of Genesis users want to customize the credits according to their need but they don’t find a way to do so.

If you know how to edit WordPress themes from Dashboard, you can customize Genesis footer by writing a single line of codes.

Step One:

  • Open Dashboard → hover over Appearance → click on Editor

Step Two:

  • Select Genesis child theme to edit.

Do not edit the parent files of Genesis Theme.


Step Three:

  • Open Theme functions (functions.php) file.

Step Four:

  • At the end of functions.php , enter
remove_action( 'genesis_footer', 'genesis_do_footer' );

This will remove the genesis footer.

Optionally, you can also hide the Genesis footer by writing the following CSS in style.css file or by using this code in Customizer's Additional CSS tab:

.footer .wrap { display:none!important; }

Step Five:

  • Now if you want to write custom credits to footer, you can add an action by writing
add_action( 'genesis_footer', 'my_custom_footer' );

This action replaces default genesis_do_footer with your own my_custom_footer. At the end you will need to add a function to my_custom_footer which can echo your HTML code. It can be done by writing

function my_custom_footer() {  echo '<p>© Copyright 2019 <a href="">Gaurav Tiwari</a> | Anything Else using simple HTML or PHP</p>' }

So, the complete PHP code reads like:

< ?php remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'my_custom_footer' ); function my_custom_footer() { echo'<p>© Copyright 2014 <a href="">Gaurav Tiwari</a> | Anything Else using simple HTML or PHP</p>' } ?>

Alternatively, the same can be done by writing the function as

function my_custom_footer() { ?>  <p>© Copyright 2022 <a href="">Gaurav Tiwari</a> | Anything Else using simple HTML or PHP</p> }

Customizing Genesis Child Themes’ footer using Native Options in 2024

Genesis now allows users to edit the footer credits via Genesis theme options and via WordPress customizer. Just to Customize > Theme Settings > Footer and you can now edit the credits easily.

Explore StudioPress' amazing code snippets

The folks at WPEngine/StudioPress have listed most of the popular code snippets here.

Go through the code and use them in your child theme's functions.php file to enhance the productivity of your WordPress site.