• 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 footer from all pages except the home page

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 › Design Tips and Tricks › Remove footer from all pages except the home page

This topic is: not resolved

Tagged: genesis_footer, Infinity Pro

  • This topic has 11 replies, 4 voices, and was last updated 3 years, 9 months ago by Terry.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • July 29, 2019 at 1:14 pm #492669
    randit
    Member

    Hello.

    I need to remove the footer from the Infinity Pro theme on all pages except the home page. How would I do this?

    Thanks in advance for your help!

    July 29, 2019 at 8:23 pm #492672
    Genesis Developer
    Member

    You can write this code into the functions.php file

    add_action( 'genesis_footer', 'paulc_site_footer', 1 );
    function paulc_site_footer() {
    	if( ! is_front_page() )
    		remove_action( 'genesis_footer', 'genesis_do_footer' );
    }

    Hope this helps


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    July 30, 2019 at 5:36 am #492676
    randit
    Member

    Hello.

    Thank you so much for the response. I have added the code to the functions.php file and the footer still appears on the pages. Is there something else you can suggest?

    Thanks again for your help.

    July 31, 2019 at 8:31 am #492689
    Terry
    Member

    Hi,

    Depending on what you're trying to do, this may help...

    add_action( 'genesis_footer', 'paulc_site_footer', 1 );
    function paulc_site_footer() {
    	if ( ! is_front_page() ) {
    		remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    		remove_action( 'genesis_footer', 'genesis_do_footer' );
    		remove_action( 'genesis_footer', 'genesis_do_subnav', 5 );
    		remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
    	}
    
    August 12, 2019 at 10:14 am #492941
    randit
    Member

    Hello:

    Sorry for the delayed response. I used the code Terry provided above and got a site is experiencing technical difficulties error message so I still need help please.

    I am using the Infinity Pro theme and want the theme's footer (footer 1,2 and 3 widgets) to ONLY appear on the home page. This theme displays the footer on all pages except the home page so I want the opposite.

    Thanks again for your help and support!

    August 12, 2019 at 11:01 am #492942
    Terry
    Member

    Please share a link to your site.

    August 12, 2019 at 1:25 pm #492946
    randit
    Member

    Hello:

    Here is a link: http://staging.dsir.flywheelsites.com/
    It is in privacy mode: username: flywheel password: soft-ballyhoo

    August 12, 2019 at 1:33 pm #492947
    Terry
    Member

    When I load the site, the Home page has the footer with 4 widget areas(Get in touch, FB, download app, welcome back), as does every page. You possibly tried something else?

    The code I provided worked in a clean Infinity Pro child theme.

    August 12, 2019 at 1:44 pm #492948
    Terry
    Member

    Is it possible that you have an older version of Infinity Pro or that the footer has been customized? The code isn't what I would expect for the Infinity Pro footer versions I have. That may be why the snippets aren't working.

    August 12, 2019 at 1:55 pm #492949
    randit
    Member

    Hi: Yes, there has been customization done below the footer area. That is probably the problem. Thank you for your help... I will need to figure this out with the footer customization. I appreciate your help!

    August 13, 2019 at 3:16 am #492953
    Brad Dalton
    Participant

    @randit You're referring to the site footer which contains the footer credits and footer menu not the footer widgets right?


    @Terry
    , you're missing a closing curly } bracket here otherwise your code works.


    Tutorials for StudioPress Themes & WooCommerce.

    August 13, 2019 at 10:22 am #492959
    Terry
    Member

    Ahhh yes, thanks Brad!
    Sorry for the cut & paste omission.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2023 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