• 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

Backcountry Middle Home Widget

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 › Backcountry Middle Home Widget

This topic is: resolved

Tagged: backcountry, homepage

  • This topic has 3 replies, 2 voices, and was last updated 13 years ago by Tony @ AlphaBlossom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 13, 2013 at 10:49 pm #20217
    mikemueller
    Participant

    Having a small issue with a Backcountry theme.

    Forced the full width, created a sidebar widget area but I'm missing something as the three are not lining up right.

    On functions.php I have:

    genesis_register_sidebar( array(
    'id' => 'home-middle',
    'name' => 'Home Middle',
    'description' => 'Middle column of home page',
    ) );

    On home.php I have:

    function backcountry_home_loop_helper() {

    if ( is_active_sidebar( 'home-left' ) || is_active_sidebar( 'home-right' ) ) {

    echo '<div id="home">';

    echo '<div class="home-left">';
    dynamic_sidebar( 'home-left' );
    echo '</div><!-- end .home-left -->';

    echo '<div class="middle-home">';
    dynamic_sidebar( 'home-middle' );
    echo '</div><!-- end .home-middle -->';

    echo '<div class="home-right">';
    dynamic_sidebar( 'home-right' );
    echo '</div><!-- end .home-right -->';

    echo '</div><!-- end #home -->';

    }

    And I added in the stylesheet:

    .home-left {
    float: left;
    width: 275px;
    }

    .home-middle {
    margin-left:auto;
    margin-right:auto;
    width: 275px;
    }

    .home-right {
    float: right;
    width: 275px;
    }

    The site is http://tidalmarine.net/

     

    February 13, 2013 at 11:43 pm #20227
    Tony @ AlphaBlossom
    Member

    You're gonna kick yourself 🙂

    Should be class="home-middle". You'll also have to float .home-middle left.

    Have a great night!


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    February 13, 2013 at 11:48 pm #20229
    mikemueller
    Participant

    LOL!  I should have seen that!  Thanks Tony!

    Changed it on home.php and it's closer but still skewed.

    Hmmm

    February 13, 2013 at 11:50 pm #20230
    Tony @ AlphaBlossom
    Member

    Lol...glad you got it since my code keeps getting stripped out.

    Adding the "float: left;" to the middle widget will line them all up.

    take care.


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Backcountry Middle Home Widget’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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