Community Forums › Forums › Archived Forums › Design Tips and Tricks › Removing Footer .. must be simple!
Tagged: footer
- This topic has 7 replies, 5 voices, and was last updated 11 years, 1 month ago by robgolbeck.
-
AuthorPosts
-
December 5, 2012 at 9:48 pm #3518Mazen ZogbiMember
Hello, I'm trying to remove the default footer and adding a custom one. Following is the code I'm using in functions.php:
/* Customize the entire footer */
remove_action('genesis_footer', 'genesis_do_footer');function custom_footer() {
?>
<p>© Copyright 2011-2012 Salesiology is a Trademark of KnowTis Consulting Inc.</p>
<?php
}
add_action( 'genesis_footer', 'custom_footer' );However, the site is still showing two footers! http://salesiology.com
Thanks for your help
Maz
December 10, 2012 at 9:15 am #4171SusanModeratorTry removing this part of your code:
add_action( ‘genesis_footer’, ‘custom_footer’ );
December 11, 2012 at 5:11 pm #4587Mazen ZogbiMemberThanks Susan.
I want to keep the custom footer though. What I want to remove is the default one.
Any pointers?
Thank you!
December 12, 2012 at 2:20 am #4670Davinder Singh KainthMemberYou can customize entire footer using last code on this http://my.studiopress.com/snippets/footer/ page.
If you do not want to play around with manual code, then you can make changes in footer using this plugin: http://www.studiopress.com/plugins/simple-edits
Sunshine PRO genesis theme
Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis ThemesMarch 6, 2013 at 5:41 pm #24654robgolbeckMemberI'm having the same problem. I've pasted the snippet into functions.php for customizing the entire footer from here http://my.studiopress.com/snippets/footer/ but it's still showing the default footer. Also tried Susan's suggestion to remove add_action( ‘genesis_footer’, ‘custom_footer’ ); but that didn't work either.
All I want to do is remove the "return to top" link and have a simple copyright statement centered at the bottom of the page... I'll try the Simple Edits plugin if necessary, but that seems like overkill for a relatively small change. I'd rather just use functions.php.
Thanks!
March 6, 2013 at 5:51 pm #24659CharlieMemberYou can remove the default footer with this code:
remove_action( 'genesis_footer', 'genesis_do_footer' );
March 6, 2013 at 8:58 pm #24713robgolbeckMemberMarch 18, 2013 at 12:58 pm #29092robgolbeckMemberI found a solution in this tutorial by Bill Erickson:
Add this to the top of your child theme's functions.php file:
add_action('genesis_setup','child_theme_setup', 15);
function child_theme_setup() {}
(As explained in the tutorial: "This setup function attaches all of the site-wide functions to the correct actions and filters. All the functions themselves are defined below this setup function.")
Then within the setup function, add this to remove the default footer:
remove_action( 'genesis_footer', 'genesis_do_footer' );
and this to add your custom footer:
add_action( 'genesis_footer', 'hc_footer' );
(Note, I've prefixed my footer function with "hc_", but you'll want to use whatever makes sense for your own custom footer).
Next, add your custom footer function below the setup function, like this:
function hc_footer() {
// your custom footer stuff
}So your functions.php file would now look something like this:
// Child Theme Setup
add_action('genesis_setup','child_theme_setup', 15);
function child_theme_setup() {
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'hc_footer' );
}// Custom Footer
function hc_footer() {
// Footer stuff goes here
}
The tutorial is worth checking out for a more detailed explanation on this solution (and other ways create customize Genesis) - artofblog.com/building-a-genesis-child-theme/. It really helped me wrap my head around Genesis a little better. 🙂
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.