order of side-by-side sidebars not displaying correctly

Community Forums Forums Design Tips and Tricks order of side-by-side sidebars not displaying correctly

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Elaine Griffin 1 year, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22931

    Elaine Griffin
    Participant
    Post count: 85

    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

    #22955

    Hard Boiled Greg
    Participant
    Post count: 88

    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

    #22956

    Elaine Griffin
    Participant
    Post count: 85

    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>’;
    }

    #22961

    Hard Boiled Greg
    Participant
    Post count: 88

    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

    #22966

    Elaine Griffin
    Participant
    Post count: 85

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

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.