• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Rearranging Widget Areas on Lifestyle Pro

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Rearranging Widget Areas on Lifestyle Pro

This topic is: not resolved

Tagged: front page, homepage, lifestyle Pro, widget areas

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 1 month ago by nutsandbolts.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 17, 2013 at 1:22 pm #67191
    Erica Mueller
    Member

    I want to have the two side-by-side widget areas at the top of the page and the full width widget areas below those. I thought if I want to front-page.php and just moved the code below like so it would work:

    
    function lifestyle_homepage_widgets() {
    
    		
    	if ( is_active_sidebar( 'home-bottom-left' ) || is_active_sidebar( 'home-bottom-right' ) ) {
    
    		echo '<div class="home-bottom">';
    
    		genesis_widget_area( 'home-bottom-left', array(
    			'before' => '<div class="home-bottom-left widget-area">',
    			'after'  => '</div>',
    		) );
    
    		genesis_widget_area( 'home-bottom-right', array(
    			'before' => '<div class="home-bottom-right widget-area">',
    			'after'  => '</div>',
    		) );
    
    		echo '</div>';
    	
    	}
    
    	genesis_widget_area( 'home-top', array(
    		'before' => '<div class="home-top widget-area">',
    		'after'  => '</div>',
    	) );
    
    	genesis_widget_area( 'home-middle', array(
    		'before' => '<div class="home-middle widget-area">',
    		'after'  => '</div>',
    	) );
    
    }
    

    As you can see here: http://www.ericamuellerdesigns.com/sandbox2/ that doesn't work so great. It's like the border for the full width widget area is starting above the split sections.

    Help!


    WordPress Manipulator

    http://www.ericamuellerdesigns.com/sandbox2/
    October 17, 2013 at 1:36 pm #67198
    nutsandbolts
    Member

    I fought with this same thing last week - I ended up changing to a full width at the top, two sections in the middle, and one at the bottom. You could always try that and leave the top one empty... This also required a BUNCH of CSS and functions changes since I changed the name of the widget areas.

    function lifestyle_homepage_widgets() {
    
    		genesis_widget_area( 'home-top', array(
    		'before' => '<div class="home-top widget-area">',
    		'after'  => '</div>',
    	) );
    	
    	if ( is_active_sidebar( 'home-middle-left' ) || is_active_sidebar( 'home-middle-right' ) ) {
    
    		echo '<div class="home-middle">';
    
    		genesis_widget_area( 'home-middle-left', array(
    			'before' => '<div class="home-middle-left widget-area">',
    			'after'  => '</div>',
    		) );
    
    		genesis_widget_area( 'home-middle-right', array(
    			'before' => '<div class="home-middle-right widget-area">',
    			'after'  => '</div>',
    		) );
    
    		echo '</div>';
    	
    	}
    
    	        genesis_widget_area( 'home-bottom', array(
    		'before' => '<div class="home-bottom widget-area">',
    		'after'  => '</div>',
    	) );
    
    }

    I don't know if that helps at all but I did finally manage to keep the full width section out of the split section that way.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    October 17, 2013 at 1:52 pm #67201
    Erica Mueller
    Member

    I wanted to test first and not change the names of any widgets...
    http://www.ericamuellerdesigns.com/sandbox2/

    Still doing it, even with code arranged like yours.


    WordPress Manipulator

    October 17, 2013 at 1:54 pm #67202
    nutsandbolts
    Member

    I just remembered what I had to do to make it stop doing that... In your stylesheet, add a clear: both; to home-bottom if it isn't there already. Once I did that, the overlap went away.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    October 17, 2013 at 2:01 pm #67206
    Erica Mueller
    Member

    YOU = AWESOME

    That did it! Yay. I can't believe I'm doing all this just to create a mock-up to see if a client likes it.

    This is my first time with Lifestyle Pro. It's beautiful but I'm having to learn a new theme.


    WordPress Manipulator

    October 17, 2013 at 2:02 pm #67207
    nutsandbolts
    Member

    Woohoo!!!! I love those rare moments when my hours of suffering can help someone else. 🙂

    I did the same - it was just a mockup, and the client hated it and wanted to use a different child theme. Kind of infuriating but I guess that's the way it goes sometimes.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble