Community Forums › Forums › Archived Forums › General Discussion › remove_filter genesis_footer_backtotop_text
- This topic has 7 replies, 2 voices, and was last updated 10 years, 1 month ago by chillybin.
-
AuthorPosts
-
January 31, 2014 at 9:21 pm #87985MikeKirklandMember
I'm trying to remove the genesis_footer_backtotop_text filter. I can replace it with a new custom filter, which I guess would do at a pinch (text that doesn't display), but I'd like to do it properly if possible.
I guess there must be something wrong with the syntax. I'm using:
remove_filter('genesis_footer_backtotop_text', 'genesis_footer_backtotop_text');
Any help would be be appreciated.
Thanks
MikeJanuary 31, 2014 at 10:26 pm #87988chillybinMemberYou can just overwrite that filter with your own, here is what I use on my client sites
add_filter('genesis_footer_creds_text', 'child_footer_creds_text'); function child_footer_creds_text($creds) { $date = date('Y'); $creds = '© '.$date.' Company Name Pte Ltd| Website by <a class="chillybin" href="http://www.chillybin.com.sg" rel="external"><span>chillybin.com.sg</span></a>'; return $creds; }
We are a web design & development consultancy based in Singapore who specialise in all things WordPress & Genesis. | ChillyBin Web Design & Consultancy: http://www.chillybin.com.sg | Twitter: @chillybindesign
February 1, 2014 at 12:45 am #87994MikeKirklandMemberI've been able to replace the filter, but I just want to remove it (and keep the genesis_footer_creds_text filter). That doesn't seem to work.
February 1, 2014 at 3:16 am #87997chillybinMemberYou could just return false; on the filter
Or replace the whole section
//* Customize the entire footer remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'child_custom_footer' ); function child_custom_footer() { }
We are a web design & development consultancy based in Singapore who specialise in all things WordPress & Genesis. | ChillyBin Web Design & Consultancy: http://www.chillybin.com.sg | Twitter: @chillybindesign
February 1, 2014 at 6:42 pm #88085MikeKirklandMemberI'm probably trying too hard to generate clean output (and without knowing enough). But this worked with no odd looking source as a result.
add_filter( 'genesis_footer_backtotop_text', 'custom_footer_backtotop_text' ); function custom_footer_backtotop_text() { return false; }
No, sorry. There is still code generated. But I can live with it.
February 2, 2014 at 1:14 am #88120chillybinMemberGlad you got it sorted in the end
We are a web design & development consultancy based in Singapore who specialise in all things WordPress & Genesis. | ChillyBin Web Design & Consultancy: http://www.chillybin.com.sg | Twitter: @chillybindesign
February 3, 2014 at 6:56 pm #88444MikeKirklandMemberThe <div>s that are still there are generating extra space at the bottom of the content area. I guess they could be removed by modifying the theme php. But I'm trying to stick with the spirit of Prose by making changes in the Custom.css and Custom.php areas - ie additive. So I ended up with this:
#footer { display:none; }
Seems to do the trick. But I don't know if there is a better way without changing the files.
February 4, 2014 at 2:00 am #88472chillybinMemberthis would work to remove all the divs
//* remove the footer 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 );
We are a web design & development consultancy based in Singapore who specialise in all things WordPress & Genesis. | ChillyBin Web Design & Consultancy: http://www.chillybin.com.sg | Twitter: @chillybindesign
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.