每當我通過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