Created
July 8, 2015 01:17
-
-
Save marisqaporter/a62e402ec15db3069265 to your computer and use it in GitHub Desktop.
add footer full width widget to a specific page in Genesis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Extra Widget Area for resources page | |
| function genesischild_footerwidgetheader() { | |
| genesis_register_sidebar( array( | |
| 'id' => 'footerwidgetheader', | |
| 'name' => __( 'Footer Widget Header', 'genesis' ), | |
| 'description' => __( 'This is for the Footer Widget Headline', 'genesis' ), | |
| ) ); | |
| } | |
| add_action ('widgets_init','genesischild_footerwidgetheader'); | |
| //* Add the page widget in the content - HTML5 | |
| add_action ('genesis_before_footer','genesischild_footerwidgetheader_position', 5 ); | |
| function genesischild_footerwidgetheader_position () { | |
| if ( is_page('19') ) { | |
| echo '<div class="footerwidgetheader-container"><div class="wrap">'; | |
| genesis_widget_area ('footerwidgetheader'); | |
| echo '</div></div>'; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since the id is an integer should be
without the quotes