• Hi

    I have created a new sidebar which should be situated at the rigth side of the page, as I moved the original sidebar to the left. However, right now it is situated above the left sidebar (instead of on the right side)

    My page is http://genanvendt.dk/

    I already did this:

    Added this code to my functions.php:

    function add_my_sidebars(){
    	register_sidebar( array(
    		'name' => 'My sidebar',
    		'id' => 'my-sidebar',
    		'description' => 'Just a little description',
    		'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</div>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    } add_action('widgets_init', 'add_my_sidebars');

    And this code to my sidebar.php:

    <?php dynamic_sidebar('my-sidebar'); ?>

    Does anybody know how to move it to the right side of the page?

    Please

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Anna Lynge

    (@anna-lynge)

    I forgot to say that I am using twenty ten theme

    Don’t edit the Twenty Ten theme. First create a child theme for your changes.

    Thread Starter Anna Lynge

    (@anna-lynge)

    Yes I know and I will ;o) But for now I am just trying to get my sidebar to appear right ;o)

    for a Twenty-Ten based child theme structure with two sidebars, possibly see: http://aaron.jorb.in/thirtyten/

    Thread Starter Anna Lynge

    (@anna-lynge)

    This is exactly what I want! ;o) thank you! But how do I use it as a child theme? Doesn’t it just become a theme of its own if I download it?

    if I remember right, this ‘ThirtyTen’ is a child theme …

    Thread Starter Anna Lynge

    (@anna-lynge)

    Yes thank you, you are right! And I now created a child theme with this theme and chosen to have the layout style that I want in settings. However, how do I add things to the two sidebars?

    However, how do I add things to the two sidebars?

    have you checked if there are corresponding sidebar areas under:

    dashboard – appearance – widgets

    Thread Starter Anna Lynge

    (@anna-lynge)

    Yes I checked everywhere that I could think of. And I can’t seem to find a description on the page http://aaron.jorb.in/thirtyten/ of how to add things to the new sidebars??

    Thread Starter Anna Lynge

    (@anna-lynge)

    And nothing new under widgets either…..

    And nothing new under widgets either…..

    there is nothing new –

    under ‘dashboard – appearance – widgets’ the ‘primary widget area’ seems to fill the left sidebar; while the ‘secondary widget area’ is for the right sidebar.

    and under dashboard – settings – Thirty Ten you can choose between the sidebar options.

    Thread Starter Anna Lynge

    (@anna-lynge)

    Unfortunately it doesn’t work that way. I’ve already tried. When I put something in the primary widget area, it appears at the left side, and my left menu disappears. When I put something in the secondary widget area, it appears in the left side under my left menu. When I put something in the footer widgets, they all appear in the footer left hand side. And I’ve chosen a setting that should make possible to have a sidebar at both sides.

    Thread Starter Anna Lynge

    (@anna-lynge)

    could it be that some of my css is overwriting the thirtyten css?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to get new sidebar to appear at the rigth side’ is closed to new replies.