• 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

Hide footer area on certain pages?

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 › Hide footer area on certain pages?

This topic is: not resolved

Tagged: genesis_footer, genesis_footer_creds_text, genesis_footer_output, site footer

  • This topic has 7 replies, 2 voices, and was last updated 6 years, 4 months ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 13, 2019 at 7:29 am #493542
    ilkweb
    Participant

    Does anyone have a link to a tutorial on hiding site-footer on certain pages?

    I'm not talking about widgets but rather the entire footer. I've used a conditional logic plugin on footer widgets but naturally the footer still shows albeit empty (except for the background-color).

    The conditional logic in the snippet below is what I'm intending to use to show the footer for those pages.

    is_page( array( 47, 18, 20 ) ) || is_404() || is_search()

    September 14, 2019 at 2:35 am #493559
    Brad Dalton
    Participant

    Try code like this


    Tutorials for StudioPress Themes.

    September 14, 2019 at 4:31 am #493561
    ilkweb
    Participant

    I think I wrongly described what I'm trying to do.

    I actually want to remove the footer widgets plus the footer widgets area. The footer, I understand, is where the credits reside.

    September 14, 2019 at 4:39 am #493562
    Brad Dalton
    Participant

    The code in this tutorial should get you started however you will need to use the correct conditional tags.


    Tutorials for StudioPress Themes.

    September 14, 2019 at 4:41 am #493563
    ilkweb
    Participant

    I've used the following in functions.php to hide the actually footer widgets wrapper which I'm describing as the "footer widgets area":

    /* Show footer widget area on certain pages */
    
    add_action( 'genesis_before', 'wpsites_display_footer_home' );
    function wpsites_display_footer_home() {
    if( !is_page( array( 47, 18, 20 ) ) || is_404() || is_search() ) {
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    remove_action('genesis_footer', 'genesis_do_footer');
    remove_action('genesis_footer', 'genesis_footer_markup_open', 5);
    remove_action('genesis_footer', 'genesis_footer_markup_close', 15);
    }}

    I'm also using a conditional logic plugin for individual widgets to hide the four widgets I have:

    is_page( array( 47, 18, 20 ) ) || is_404() || is_search()

    This is working so far but I think I could probably lose the conditional logic plugin.

    September 14, 2019 at 4:43 am #493564
    Brad Dalton
    Participant

    Yes, no need for the plugin when you have coded the conditionals into the PHP.


    Tutorials for StudioPress Themes.

    September 14, 2019 at 4:52 am #493565
    ilkweb
    Participant

    I actually do need the plugin though - Without it, the widgets show up where I don't want them to. I've yet to replace the conditionals I put into the plugin with the equivalent conditionals in functions.php.

    I've been looking for a way to do this, as seemingly, what I presently have in functions.php is not sufficient.

    September 17, 2019 at 2:39 am #493597
    Brad Dalton
    Participant

    Once you add the correct conditionals to the code in functions.php, you'll no longer need the plugin.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 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

© 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