It is easy to remove.move the footer, simply add this to your functions.php.
To remove the footer, use:
[php]remove_action( 'genesis_footer', 'genesis_do_footer' );[/php]
To move the footer below the body #wrap, use:
[php]remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'wp_footer', 'genesis_do_footer' );[/php]
This worked but it didn’t move the code too, just the actual content of the footer. Wondering if there’s a way to grab the markup around it or something.
Hello Nate,
What content are you speaking of? If you are talking about the footer widgets, that is something other than the actual footer (which is simply the back to top text and the credits text in Genesis). To move the footer widgets, your code is just as simple:
[php]
remove_action( ‘genesis_before_footer’, ‘genesis_footer_widget_areas’ );
add_action( ‘wp_footer’, ‘genesis_footer_widget_areas’ , 5 );
[/php]
I think he means it didn’t remove the footer div itself, just the contents within. I also need to remove that div. Still looking…
Hello Nate,
In my instance, I still wanted that footer down below. However, here’s how you would move the entire thing, footer widgets and footer:
[php]
remove_action( ‘genesis_before_footer’, ‘genesis_footer_widget_areas’ );
remove_action( ‘genesis_footer’, ‘genesis_footer_markup_open’, 5 );
remove_action( ‘genesis_footer’, ‘genesis_do_footer’ );
remove_action( ‘genesis_footer’, ‘genesis_footer_markup_close’, 15 );
add_action( ‘wp_footer’, ‘genesis_footer_widget_areas’ );
add_action( ‘wp_footer’, ‘genesis_footer_markup_open’ );
add_action( ‘wp_footer’, ‘genesis_do_footer’ );
add_action( ‘wp_footer’, ‘genesis_footer_markup_close’ );
[/php]
Just what I was looking for! Thanks Travis.
Hi
Do you think its possible just to move the creds outside the footer under the #footer div?
greetings
DG
Yes, just filter the creds text to remove it, and then add an additional footer function hooking into
wp_footer
or evengenesis_after
.Hi,
I’d like to insert a div after #wrap, just before #footer-widgets. Would you know how to go about it?
Thanks!
J
Hello Jay,
This should work for you…
[php]
add_action( ‘wp_footer’, ‘genesis_footer_markup_open’ );
add_action( ‘wp_footer’, ‘child_function_before_wrap’ );
add_action( ‘wp_footer’, ‘genesis_do_footer’ );
[/php]
Hi Travis,
I’m using Agentpress Child Theme, I’d like to insert the footer credits () Inside the Footer Widgets div () but preferably after the footer-widgets but still inside it’s div.
How can i do that? Thanks in advance.