• 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

order of side-by-side sidebars not displaying correctly

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 › order of side-by-side sidebars not displaying correctly

This topic is: not resolved

Tagged: order, Sidebar, widget areas

  • This topic has 4 replies, 2 voices, and was last updated 13 years ago by Elaine Griffin.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 26, 2013 at 10:47 am #22931
    Elaine Griffin
    Member

    Hello,

    Let me see if I can explain this. On this page, http://www.socialmediamomstravels.com/ I have registered some widget areas below the content. They are left widget, center widget, right widget. But they are not displaying correctly. From left to right they should be news, video, and featured deal. But instead they are featured deal, news, video. What gives?

    Thanks!

    Elaine

    February 26, 2013 at 2:06 pm #22955
    Hard Boiled Greg
    Member

    Hi Elaine,

    Did you place them in the correct order where you set them to appear in your functions.php file? If you share the code you used to display them, perhaps I can be of more assistance.

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

    February 26, 2013 at 2:12 pm #22956
    Elaine Griffin
    Member

    Hi Greg,

    Thanks for the response. Here is the code.

    /**add a new sidebar**/
    genesis_register_sidebar( array(
    'id'        => 'left-widget',
    'name'      => 'Left Widget',
    'description'   => 'This is a sidebar that contains the left widget.',
    ) );

    /** Loads a new sidebar before the content */
    function child_left_widget() {
    echo '<div class="left-widget">';
    dynamic_sidebar( 'left-widget' );
    echo '</div>';
    }
    /**add a new sidebar**/
    genesis_register_sidebar( array(
    'id'        => 'center-widget',
    'name'      => 'Center Widget',
    'description'   => 'This is a sidebar that contains the left widget.',
    ) );

    /** Loads a new sidebar before the content */
    function child_center_widget() {
    echo '<div class="center-widget">';
    dynamic_sidebar( 'center-widget' );
    echo '</div>';
    }
    /**add a new sidebar**/
    genesis_register_sidebar( array(
    'id'        => 'right-widget',
    'name'      => 'Right Widget',
    'description'   => 'This is a sidebar that contains the right widget.',
    ) );

    /** Loads a new sidebar before the content */
    function child_right_widget() {
    echo '<div class="right-widget">';
    dynamic_sidebar( 'right-widget' );
    echo '</div>';
    }

    February 26, 2013 at 2:27 pm #22961
    Hard Boiled Greg
    Member

    Hi Elaine,

    Is that all? Where and what is the code that is hooking those sidebars after the content?

    Thanks,

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

    February 26, 2013 at 2:48 pm #22966
    Elaine Griffin
    Member

    AH! The code hooking the sidebar was out of order. Thank you! Problem solved.

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

© 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