每当我通过wordpress或新的woocommerce页面添加新页面时,由于安装woocommerce插件都会将侧边栏推到内容下的页面底部。侧边栏出现在wordpress内容下
我不知道为什么会发生这种情况。请查看所附照片
这是代码的样子在我的主题侧边栏的CSS
/* Sidebar
---------------------------------------- */
#sidebar {
float: Left;
}
.widget {
background: url(images/box-tail.gif) repeat-x 50% 0%;
position: relative;
margin: 0 0 30px 0;
border: 1px solid #f0f0f0;
border-top: none;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
ul.children {
margin: 0 0 0 20px;
}
.widget-indent {
padding: 0 20px 19px 20px;
}
.primary_content_wrap .widget {
padding: 0 19px 19px 19px;
}
.primary_content_wrap h3 {
padding: 0 0 21px 0;
}
.primary_content_wrap .widget #searchform {
width: 100%;
}
.primary_content_wrap .widget #searchform input[type="text"] {
width: 123px;
}
这是我的sidebar.php
<aside id="sidebar" class="grid_6 omega">
<?php if (! dynamic_sidebar('Sidebar')) : ?>
<div id="sidebar-search" class="widget">
<h3>Search</h3>
<?php get_search_form(); ?> <!-- outputs the default Wordpress search form-->
</div>
<div id="sidebar-nav" class="widget menu">
<h3>Navigation</h3>
<?php wp_nav_menu(array('menu' => 'Sidebar Menu')); ?> <!-- editable within the Wordpress backend -->
</div>
<div id="sidebar-archives" class="widget">
<h3>Archives</h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>
<div id="sidebar-meta" class="widget">
<h3>Meta</h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</div>
<?php endif; ?>
</aside><!--sidebar-->
然后将此是我如何在每个页面中调用侧边栏的方式
<?php get_sidebar(); ?>
任何帮助将不胜感激。
UPDATE 外观>小部件
检查您的外观 - >小工具,看看有什么。 – SMacFadyen
我用外观>小部件的图像更新了我的问题,它在框中说这会出现在页面的右侧。 – HurkNburkS
你能提供一个安装的链接吗?这对确定问题会有很大的帮助。 CSS级联。在页面的其他地方可能会出现问题。您发布的代码不足以确定问题或让您知道如何解决问题。 – evandentremont