If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
i have a qtranslate widget that should stay on a certain position (under the logo)
if a page has the option “display right sidebar” my widget position changes (unwanted) to the right.
how can that easily be fixed?
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:
'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
The topic ‘widgets & sidebars’ is closed to new replies.