• 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

switching widget sections

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 › Design Tips and Tricks › switching widget sections

This topic is: resolved

Tagged: lifestyle theme, widgets

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 7 months ago by happy2bnmarketing.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 31, 2014 at 11:47 am #130032
    happy2bnmarketing
    Member

    I have the lifestyle theme and I want to make the middle widget section be after the bottom left and bottom right.

    I"m a bit scared of messing with Php, so looking for some reassurance first, that it's worth moving them and that even if I screw it up, I can fix it... right???

    So, it seems logically to me (but I really just learn as I go and don't understand php at all) that I could just move these around in the functions file. Is that correct? Or am I totally missing how this all works. I figured swapping order on the page and maybe an instruction or to... though now that I'm looking at the code, I'm thinking there's more to it.

    genesis_widget_area( 'home-middle', array(
    'before' => '<div class="home-middle widget-area">',
    'after' => '</div>',

    http://ulew.com
    October 31, 2014 at 11:51 am #130033
    Genesis Developer
    Member

    search this function "lifestyle_homepage_widgets" in your front-page.php file. Then replace the function by following code:

    function lifestyle_homepage_widgets() {
    
    	genesis_widget_area( 'home-top', array(
    		'before' => '<div class="home-top widget-area">',
    		'after'  => '</div>',
    	) );
    	
    	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-middle', array(
    		'before' => '<div class="home-middle widget-area">',
    		'after'  => '</div>',
    	) );
    
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    October 31, 2014 at 12:07 pm #130035
    happy2bnmarketing
    Member

    Thank you so much for the fast reply! I double checked and have the copy right, but is there something else I need to do? Maybe div class settings too?

    It's showing up in between the left and right now, sort of.

    November 9, 2014 at 9:47 pm #131030
    happy2bnmarketing
    Member

    FYI if anyone comes across this for reference. I contacted support and they gave me this code to add to my style.css and it fixed the problem along with the above code from genwrok. Thanks!

    Just add the following in your child theme's style.css:

    .home-bottom {
    overflow: hidden;
    }

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2023 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