【问题标题】:How to fix the content area got blocked by widget in Wordpress?如何修复被 Wordpress 中的小部件阻止的内容区域?
【发布时间】:2016-02-15 05:08:02
【问题描述】:

我的 wordpress 自定义主题上的内容区域被小部件侧边栏阻止,因此我无法单击内容区域上的任何内容,例如任何智能手机产品。详情请查看my website

这里是 style.css:

.widget {
    margin: 0 -6px 0.5em;
}

#secondary { /* Sidebar 1 */width: 20%;/* margin-top: -185%; *//* margin-left: 32%; */margin: 30px -68.3rem;
float: left;
position: relative;}

#content {
    float: left;
    width: 82%;
    margin-top: 107px;
}

#wrapper {
    margin: 0 auto;
    padding: 0;
    vertical-align: top;
    width: 1170px;
    /* background-color: #FFFFFF; */
}

那么我该如何解决呢?之前谢谢!

【问题讨论】:

    标签: css wordpress wordpress-theming


    【解决方案1】:

    您只需从侧边栏中删除 id="wrapper"

    您的侧边栏应如下所示:

    ...
    <div id="sidebar">
        <div id="not_wrapper">
            <div id="sidebanner"></div>
            <aside id="dc_jqaccordion_widget-2" class="widget ">...</aside>
    ...
    

    请注意,我将id="wrapper" 替换为id="not_wrapper" 以供参考。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-24
      • 1970-01-01
      • 2014-06-28
      • 2016-10-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多