Community Forums › Forums › Design Tips and Tricks › order of side-by-side sidebars not displaying correctly
Tagged: order, Sidebar, widget areas
This topic contains 4 replies, has 2 voices, and was last updated by Elaine Griffin 2 months, 3 weeks ago.
-
AuthorPosts
-
February 26, 2013 at 10:47 am #22931
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 #22955Hi 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 #22956Hi 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 #22961Hi 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 #22966AH! The code hooking the sidebar was out of order. Thank you! Problem solved.
-
AuthorPosts
You must be logged in to reply to this topic.