How to get new sidebar to appear at the rigth side
-
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 https://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)
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.