• 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

Sidebar in the wrong spot!

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 › Sidebar in the wrong spot!

This topic is: resolved
  • This topic has 8 replies, 2 voices, and was last updated 10 years, 1 month ago by Sridhar Katakam.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • October 27, 2015 at 3:52 pm #169262
    lianam
    Member

    Hello there! I am trying to put a sidebar on the Home Page of this Enterprise site. When I adjust in "front-page.php" so that it did a content-sidebar layout rather than a full-width one, it allowed the Home-Top Widget area to remain at full-width and pushed the sidebar to the bottom of the page. Any ideas why? I want the sidebar to be at the top (beside the Home-Top Widget area/by the image...like a normal sidebar). THANKS!

    I changed this:

    //* Force full-width-content layout setting
    //* add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ );

    To this:

    // Force content-sidebar layout setting
    add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_content_sidebar’ );

    http://hdfamilylawgroup.com/
    October 27, 2015 at 6:22 pm #169290
    Sridhar Katakam
    Participant

    1) In functions.php, replace

    genesis_register_sidebar( array(
    	'id'          => 'home-top',
    	'name'        => __( 'Home - Top', 'enterprise' ),
    	'description' => __( 'This is the top section of the homepage.', 'enterprise' ),
    ) );

    with

    genesis_register_sidebar( array(
    	'id'          => 'home-top-left',
    	'name'        => __( 'Home - Top - Left', 'enterprise' ),
    	'description' => __( 'This is the top left section of the homepage.', 'enterprise' ),
    ) );
    genesis_register_sidebar( array(
    	'id'          => 'home-top-right',
    	'name'        => __( 'Home - Top - Right', 'enterprise' ),
    	'description' => __( 'This is the top right section of the homepage.', 'enterprise' ),
    ) );

    2) In front-page.php, replace

    is_active_sidebar( 'home-top' )

    with

    is_active_sidebar( 'home-top-left' ) || is_active_sidebar( 'home-top-right' )

    and

    function enterprise_home_top_widgets() {
    
    	genesis_widget_area( 'home-top', array(
    		'before' => '<div class="home-top widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
    	) );
    	
    }

    with

    function enterprise_home_top_widgets() {
    
    	echo '<div class="home-top"><div class="wrap">';
    		genesis_widget_area( 'home-top-left', array(
    			'before' => '<div class="home-top-left widget-area three-fourths first">',
    			'after'  => '</div>',
    		) );
    
    		genesis_widget_area( 'home-top-right', array(
    			'before' => '<div class="home-top-right widget-area one-fourth">',
    			'after'  => '</div>',
    		) );
    	echo '</div></div>';
    
    }

    3) In style.css, add

    .home-top .featured-content .entry-title {
    	font-size: 20px;
    	margin-bottom: 20px;
    }
    
    .home-top-right .widget {
    	padding: 70px 10px 0 10px;
    	margin-bottom: 0;
    }

    4) At Appearance > Widgets, drag the widget that was present in Home Top widget area [it would have moved to Inactive Sidebar (not used) section] into Home - Top - Left widget area. In the Home - Top - Right widget area, drag your desired widget(s).

    to get

    screenshot

    CSS adjustments (incl. for responsiveness) may additionally be needed.


    Genesis Tutorials | Follow me on Twitter

    October 27, 2015 at 9:10 pm #169294
    lianam
    Member

    Help, Sridhar! I've messed something up! Can you take a look and maybe help me with it? I did make all the changes, but must have done something wrong. HELP! Thank you in advance!

    October 27, 2015 at 9:40 pm #169296
    lianam
    Member

    Sridhar...So I kind of fixed some of it. For a while the site had a blank page since I made some mistakes with the code.

    But now I need to get rid of the 2nd "Contact Us" form that is showing up at the bottom of the page (because it's in the Primary Sidebar widget and I need it to keep showing up on other pages). I know I did something and can't remember how to fix it.

    Also...The Home Page is all off and funky. How do I get it back to the normal width so that it's not running off he sides of the page/screen?

    THANK YOU AGAIN!

    October 27, 2015 at 9:45 pm #169298
    Sridhar Katakam
    Participant

    Can you send me the WordPress admin and FTP logins via https://sridharkatakam.com/contact/ so I can look inside and attempt to fix?


    Genesis Tutorials | Follow me on Twitter

    October 27, 2015 at 10:02 pm #169300
    lianam
    Member

    Thank you, Sridhar! I just emailed you.

    October 27, 2015 at 11:38 pm #169306
    Sridhar Katakam
    Participant

    Fixed.

    1) in style.css changed

    .ninja-forms-form .field-wrap label {
    	font- size: 14px;
    }

    to

    .ninja-forms-form .field-wrap label {
    	font-size: 14px;
    }

    2) in front-page.php changed

    echo '<div class="home-top"><div class="wrap>';

    to

    echo '<div class="home-top"><div class="wrap">';


    Genesis Tutorials | Follow me on Twitter

    October 27, 2015 at 11:56 pm #169308
    lianam
    Member

    thank you so much!!!

    October 27, 2015 at 11:59 pm #169310
    Sridhar Katakam
    Participant

    You are welcome.

    You might want to mark the topic resolved.


    Genesis Tutorials | Follow me on Twitter

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 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