• 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 custom function from front 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 custom function from front page?

This topic is: not resolved

Tagged: front page, widget

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 4 months ago by dhardydesign.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 28, 2016 at 10:26 am #193828
    dhardydesign
    Member

    Hi all,

    I've created a snippet that places a widget just above my footer area. I'd like to not display it on the front page. Any ideas? Here's the code.

    //Position Widget Header
    function genesischild_footerwidgetheader_position () {
    echo '<div class="footerwidgetheader-container"><div class="wrap">';
    genesis_widget_area ('footerwidgetheader');
    echo '</div></div>';
    }

    add_action ('genesis_before_footer','genesischild_footerwidgetheader_position', 5 );

    add_action ('widgets_init','genesischild_footerwidgetheader');

    September 28, 2016 at 11:28 am #193838
    Christoph
    Member

    Hi,

    try

    //Position Widget Header
    function genesischild_footerwidgetheader_position () {
    if( ! is_front_page() ) {
    echo '<div class="footerwidgetheader-container"><div class="wrap">';
    genesis_widget_area ('footerwidgetheader');
    echo '</div></div>';
    }
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    September 28, 2016 at 11:37 am #193840
    dhardydesign
    Member

    brilliant, thanks Christoph!

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