• 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

Metro – 3 Footer Widgets: Keep on Home Page 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 › General Discussion › Metro – 3 Footer Widgets: Keep on Home Page Only

This topic is: not resolved

Tagged: footer, footer widgets, front page, frontpage, home page, homepage, Metro, Metro theme.

  • This topic has 6 replies, 2 voices, and was last updated 10 years, 3 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • May 28, 2013 at 4:15 pm #42961
    emilwisch
    Member

    Hi All,

    I'm sorry if this has been addressed already. I've been scouring the forums and documentation and I either haven't found the answer or misinterpreted other fixes.

    The closest solution I found was: http://www.studiopress.community/topic/minimum-rendering-3-footer-widgets-on-homepage-only/

    However, I added the PHP snippet (http://www.studiopress.community/topic/minimum-rendering-3-footer-widgets-on-homepage-only/#post-39042) below `add_theme_support( 'genesis-footer-widgets', 3 );` and couldn't make the magic happen - was also unsuccessful when removing `add_theme_support( 'genesis-footer-widgets', 3 );` and then adding the aforementioned PHP snippet.

    Any direction would be greatly appreciated.

    http://dev.marcelsculinaryexperience.com
    May 28, 2013 at 7:06 pm #42995
    Brad Dalton
    Participant

    Add the code below the existing code. No need to add theme support again for footer widgets as its already in your child themes functions.php file.


    Tutorials for StudioPress Themes & WooCommerce.

    May 29, 2013 at 8:42 am #43059
    emilwisch
    Member

    Hi Brad - thanks for jumping in. That is correct - I did not add theme support a second time.

    And, I've actually added the snippet back in to the functions.php file (and left it there this time). The 3 footer widgets are still rendering on all pages and posts. Thanks again.

    May 29, 2013 at 8:50 am #43062
    Brad Dalton
    Participant

    Just tested this again and it still works

    Code not displaying? Grab it on Github.


    Tutorials for StudioPress Themes & WooCommerce.

    May 29, 2013 at 9:30 am #43069
    emilwisch
    Member

    Thanks Brad - I just tried it again, replacing instances of 'wpsites' with 'metro'. I also just added the following because I'm using a custom front page (and still no go):

    `add_action( 'genesis_before', 'wpsites_display_footer_front_page' );
    function wpsites_display_footer_front_page() {
    if( !is_front_page() ) {
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    }}`

    I've left the above in place.

    Is it possible that a plugin could be causing the interference on something like this? I'll try disabling plugins in the meantime.

    I think I may just widgetize the homepage/frontpage with that Genesis Extender plugin at this point.

    May 29, 2013 at 1:49 pm #43114
    emilwisch
    Member

    Follow-up
    I've decided to just remove the footer widgets entirely and add 3 new widgets to the homepage/frontpage only. Used the Genesis extender plugin to add the widgets and will be customizing the CSS.

    Thanks again, Brad.

    May 29, 2013 at 10:49 pm #43155
    Brad Dalton
    Participant

    Tested that code and it works. Did you copy this code from the view raw link and paste it in your child themes functions.php file using a code editor like Notepad++?


    Tutorials for StudioPress Themes & WooCommerce.

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

© 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