Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10539

    i have a qtranslate widget that should stay on a certain position (under the logo)

    http://robertschad.eu/

    if a page has the option “display right sidebar” my widget position changes (unwanted) to the right.

    http://robertschad.eu/sculptures/a-cross-for-fatima/

    how can that easily be fixed?

    #68433

    Hey! Unfortunatley there is no easy way to do this.

    YOu can open the sidebar.php file and remove line 15:


    $nowidgets_left = true;

    then all the widgets would appear on the left. The problem is that the right sidebar would then also show all those widgets, so the next step would be to register a unqiue widget area for the right side in includes/admin/register-widget-area.php by adding this to the very bottom of the page:


    register_sidebar(array(
    'name' => 'Sidebar Right',
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgettitle">',
    'after_title' => '</h3>',
    ));

    last but not least you need to call that widget area in the right sidebar: open the sidebar-right.php file and add


    if (dynamic_sidebar('Sidebar Right') ) : $default_sidebar = false; endif;

    at line 14

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

The topic ‘widgets & sidebars’ is closed to new replies.