• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

remove_filter genesis_footer_backtotop_text

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › remove_filter genesis_footer_backtotop_text

This topic is: not resolved
  • This topic has 7 replies, 2 voices, and was last updated 12 years, 6 months ago by chillybin.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • January 31, 2014 at 9:21 pm #87985
    MikeKirkland
    Member

    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
    Mike

    January 31, 2014 at 10:26 pm #87988
    chillybin
    Member

    You 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 = '&copy; '.$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 #87994
    MikeKirkland
    Member

    I'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 #87997
    chillybin
    Member

    You 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 #88085
    MikeKirkland
    Member

    I'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 #88120
    chillybin
    Member

    Glad 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 #88444
    MikeKirkland
    Member

    The <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 #88472
    chillybin
    Member

    this 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

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble