Prose: full width area after sidebar on home page?

Community Forums Forums Design Tips and Tricks Prose: full width area after sidebar on home page?

This topic is: not resolved

This topic contains 19 replies, has 3 voices, and was last updated by  Tom 7 months, 4 weeks ago.

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #101925

    cissyh
    Member
    Post count: 12

    I love Genesis framework and I’ve used it on my last several designs. I’ve run into a wall and I’m hoping someone here can help me. I’m certain my problem is embarrassingly simple but I can’t seem to find the answer. I’m using Prose to redesign a client’s site website, and I’d like to add a full width widgetized area on the home page only at genesis_after_content_sidebar_wrap.

    You can see the page I’m working at http://jayneannkrentz.com/dev2013. I’d like everything from “Recent Releases” on down to be full width. Can anyone suggest the best way to accomplish it?

    Thanks in advance for your help

    http://jayneannkrentz.com/dev2013
    #102094

    cissyh
    Member
    Post count: 12

    I 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!

    #102101

    cissyh
    Member
    Post count: 12

    Another update: I’ve also tried the following code based on a similar question at http://www.studiopress.com/forums/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>',
    		) );
    
         }
    
    }
    
    
    #102162

    cissyh
    Member
    Post count: 12

    I’m not sure if it’s kosher to “bump” messages, but I’m really hoping to get a response on this. Thanks so much.

    #102314

    cissyh
    Member
    Post count: 12

    Is this an impossible task or am I asking a stupid question? I truly would appreciate help with this issue.

    Thanks in advance.

    #102359

    AC
    Blocked
    Post count: 7712

    Brad has a tutorial on this. See if this works for you.

    But… change the genesis_before_content_sidebar_wrap to genesis_after_content_sidebar_wrap. And you can change the slider text to whatever you want.

    #102361

    cissyh
    Member
    Post count: 12

    Thanks 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;
    }
    #102362

    AC
    Blocked
    Post count: 7712

    Can you give me a link so I can take a look at the site and code?

    #102363

    cissyh
    Member
    Post count: 12
    #102364

    AC
    Blocked
    Post count: 7712

    Turn Minify off and any other caching. Clear the cache.

    #102365

    cissyh
    Member
    Post count: 12

    Okay, minify is off. I’m still seeing no change. Do you see it?

    #102366

    AC
    Blocked
    Post count: 7712

    Drag an actual widget in there, not just text.

    #102367

    cissyh
    Member
    Post count: 12

    I dragged the categories list over into the widget area. Still nothing displaying.

    #102368

    AC
    Blocked
    Post count: 7712

    Change before_post_box to after_post_box

    #102369

    cissyh
    Member
    Post count: 12

    Okay, 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 -->';
    }
    
    }
Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.