Community Forums › Forums › Archived Forums › General Discussion › Metro – 3 Footer Widgets: Keep on Home Page Only
Tagged: footer, footer widgets, front page, frontpage, home page, homepage, Metro, Metro theme.
- This topic has 6 replies, 2 voices, and was last updated 12 years, 12 months ago by
Brad Dalton.
-
AuthorPosts
-
May 28, 2013 at 4:15 pm #42961
emilwisch
MemberHi 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.comMay 28, 2013 at 7:06 pm #42995Brad Dalton
ParticipantAdd 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.
May 29, 2013 at 8:42 am #43059emilwisch
MemberHi 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 #43062Brad Dalton
ParticipantMay 29, 2013 at 9:30 am #43069emilwisch
MemberThanks 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 #43114emilwisch
MemberFollow-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 #43155Brad Dalton
ParticipantTested 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++?
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.