Forum Replies Created
-
AuthorPosts
-
cissyhMember
Done. It's back on the widget list.
cissyhMemberI actually tried the code there before I put it in init.php and the widget didn't even show up, but I tried again as we've tweaked the code. Removed it from init.php and moved to the functions box of Custom Code area. The widget is gone again from the Widgets page.
cissyhMemberOkay, the code now reads
genesis_register_sidebar( array( 'id' => 'after-sidebar', 'name' => __( 'After Sidebar', 'prose' ), 'description' => __( 'This is a full-width widget on the home page below the sidebar', 'prose' ), ) ); /** * @author Brad Dalton - WP Sites * @link http://wpsites.net/web-design/home-page-slider-prose-theme/ */ add_action( 'genesis_after_content_sidebar_wrap', 'child_after_post_box' ); function child_after_post_box() { if ( is_home() && is_active_sidebar( 'after-sidebar' ) ) { echo '<div id="after-sidebar">'; dynamic_sidebar( 'after-sidebar' ); echo '</div><!-- end #after-sidebar -->'; } }
cissyhMemberI dragged the categories list over into the widget area. Still nothing displaying.
cissyhMemberOkay, minify is off. I'm still seeing no change. Do you see it?
cissyhMemberSure, it's http://jayneannkrentz.com/dev2013
cissyhMemberThanks so much for responding. This got me closer. The widget area is appearing on the Widgets list in the dashboard but the text I put into the widget box isn't showing up on the home page.
I put this code at the end of Prose's /lib/init.php file
genesis_register_sidebar( array( 'id' => 'after-sidebar', 'name' => __( 'After Sidebar', 'prose' ), 'description' => __( 'This is a full-width widget on the home page below the sidebar', 'prose' ), ) ); /** * @author Brad Dalton - WP Sites * @link http://wpsites.net/web-design/home-page-slider-prose-theme/ */ add_action( 'genesis_after_content_sidebar_wrap', 'child_before_post_box' ); function child_before_post_box() { if ( is_home() && is_active_sidebar( 'after-sidebar' ) ) { echo '<div id="after-sidebar">'; dynamic_sidebar( 'after-sidebar' ); echo '</div><!-- end #after-sidebar -->'; } }
And I added this to my stylesheet
#after-sidebar{ margin: 5px 0 10px; padding: 10px; overflow: hidden; }
cissyhMemberIs this an impossible task or am I asking a stupid question? I truly would appreciate help with this issue.
Thanks in advance.
cissyhMemberI'm not sure if it's kosher to "bump" messages, but I'm really hoping to get a response on this. Thanks so much.
cissyhMemberAnother update: I've also tried the following code based on a similar question at http://www.studiopress.community/topic/placing-a-footer-banner-above-footer-widgets-how-is-this/ that I found searching the forum.
Still no new widget area showing up.
//* Register widget areas genesis_register_sidebar( array( 'id' => 'before-footer', 'name' => __( 'Before Footer Widget', 'prose' ), 'description' => __( 'Add Content Before The Footer Site Wide', 'prose' ), ) ); add_action( 'genesis_before_footer', 'prose_before_footer_widget', 1 ); function prose_before_footer_widget() { if ( is_active_sidebar('before-footer') ) { genesis_widget_area( 'before-footer', array( 'before' => '<div class="before-footer" class="widget-area">', 'after' => '</div>', ) ); } }
cissyhMemberI thought I might get better response if I explained what I'd already done.
I've added this to the custom code area but no new widget is showing up on the widgets page:
/** Register widget areas */ genesis_register_sidebar( array( 'id' => 'after-sidebar', 'name' => __( 'After Sidebar', 'prose' ), 'description' => __( 'This is the a full width section after the sidebar but before the footer.', 'prose' ), ) ); add_action( 'genesis_after_content_sidebar_wrap', 'add_genesis_widget_area' ); function add_genesis_widget_area() { genesis_widget_area( 'after-sidebar', array( 'before' => '<div class="after-sidebar widget-area">', 'after' => '</div>', ) ); }
I'd really appreciate any help you guys can provide. Thanks!
-
AuthorPosts