Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding a Landing Page to PixelHappy but don't want the footer widgets
Tagged: footer widget removal, landing page, pixelhappy
- This topic has 4 replies, 3 voices, and was last updated 11 years, 1 month ago by kworthington.
-
AuthorPosts
-
November 6, 2013 at 9:09 pm #71373kworthingtonMember
I added a custom landing page to my Pixel Happy theme, but it's still showing the the footer widgets. Here's part of my landing page code:
// Remove header, navigation, breadcrumbs, footer widgets, footer
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
add_action( 'genesis_header', 'kw_masthead' );
add_action( 'genesis_header', 'kw_mainimage' );
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_do_header' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs');remove_action( 'genesis_footer', 'footer-widgeted' ); // tried this to remove widgets
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );genesis();
I have the URL of a screenshot attached which shows the hooks and markup of the widgets in question. Any help is really appreciated. Thanks.
http://gyazo.com/d48dd825aa11dadc6bc57008125e920d.pngNovember 6, 2013 at 11:46 pm #71388nutsandboltsMemberIf you try this by itself, does it have any effect?
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
That's the usual method for removing the footer widgets, but the Pixel Happy theme is so old it may be using a different hook.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 7, 2013 at 6:56 am #71458kworthingtonMemberThanks for your reply.
Yes, I tried that by itself, but it didn't remove the 3 footer widgets.
I'm not sure if this helps, but here is a screenshot of the Widgets area with the footer widgets supplied by pixelhappy theme:
November 7, 2013 at 7:39 am #71461cdilsParticipantI found this in the Pixel Happy functions.php
// Add widgeted footer section add_action('genesis_before_footer', 'pixelhappy_include_footer_widgets'); function pixelhappy_include_footer_widgets() { require(CHILD_DIR.'/footer-widgeted.php'); }
So Andrea's right that this would work normally:
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
But since PH is calling in it's own function, you'll need to remove THAT instead of genesis_footer_widget_areas. Try this:
remove_action( 'genesis_before_footer', 'pixelhappy_include_footer_widgets' );
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
November 7, 2013 at 7:44 am #71462kworthingtonMemberYES! That's it! Thanks so much Carrie!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.