• 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

Minimum – Rendering 3 Footer Widgets on Homepage Only

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 › Minimum – Rendering 3 Footer Widgets on Homepage Only

This topic is: resolved

Tagged: footer, footer widgets, homepage, minimum

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 1 month ago by eluviis.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 1, 2013 at 3:56 pm #38837
    eluviis
    Member

    On Minimum - the 3 footer widgets that are not used on the demo site. Is it possible to only display them on the homepage and not the rest of the site?

    May 2, 2013 at 3:02 am #38898
    Marco
    Member

    Hello,

    I'd rather add 3 brand new footer widgets on home page and comment in functions.php the
    `add_theme_support( 'genesis-footer-widgets', 3 );`

    You could also hide/show them via .css.


    Neat & Plain – Genesis and WordPress specialist

    May 2, 2013 at 11:11 am #38940
    eluviis
    Member

    @Marco - Not sure I fully understand. Why add 3 band new widgets if I'm not using the stock 3 widgets yet. Am I missing something.

    I want to use those 3 widgets, but what I will display on them I only want on the homepage and nowhere else. Can I just modify the PHP that displays those widgets with a conditional rule or something? (I'm not a PHP expert).

    Like... this is the code in functions.php that seems to add those 3 widgets:

    /** Add support for 3-column footer widgets */
    add_theme_support( 'genesis-footer-widgets', 3 );

    Now, what would I need to do to it to tell it to only display on the homepage? Like, "if is home" or something like that?

    Thanks, Danny

    May 3, 2013 at 4:02 am #39042
    Marco
    Member

    Hello,

    copy this on functions.php just below the
    `add_theme_support( 'genesis-footer-widgets', 3 );`

    function home_footer_widgets() {
    
    	if ( !is_home() ) {
    
    		remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    	}
    }
    add_action( 'genesis_before_footer', 'home_footer_widgets',1 );
    

    Neat & Plain – Genesis and WordPress specialist

    May 10, 2013 at 4:07 pm #40388
    eluviis
    Member

    @Marco - Just got back to take care of this. Been quite busy.

    That worked GREAT! Thank you very much!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Minimum – Rendering 3 Footer Widgets on Homepage Only’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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