这个最高利润来自我的Wordpress网站

时间:2014-08-12 19:00:13

标签: php html css wordpress

所以我使用的是我定制的Twenty Twelve主题。我需要删除标题菜单上方的上边距。见http://blog.littlenomads.com/

在我的儿童样式表中,我添加了:

    .site-header {
    padding: 0px 0 !important;
    margin: 0px 0 !important;
}
/* remove site margin */
body .site{margin:0 !important;max-width: 100% !important;}

.site-content {
margin-top: 0px;
}

我在这里找到了解决方案:https://wordpress.stackexchange.com/questions/85414/twenty-twelve-theme-remove-margins

我还在主题Twenty Twelve样式表中完全注释掉了:

    /* Minimum width of 960 pixels. */
@media screen and (min-width: 960px) {
    body {
        background-color: #e6e6e6;
    }
    /*Brian Ogden 8-12-2014*/
    /*body .site {
        padding: 0 40px;
        padding: 0 2.857142857rem;
        margin-top: 48px;
        margin-top: 3.428571429rem;
        margin-bottom: 48px;
        margin-bottom: 3.428571429rem;
        box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
    }*/
    body.custom-background-empty {
        background-color: #fff;
    }
    body.custom-background-empty .site,
    body.custom-background-white .site {
        padding: 0;
        margin-top: 0;
        margin-bottom: 0;
        box-shadow: none;
    }
}



  * Minimum width of 600 pixels. */
@media screen and (min-width: 600px) {
    .author-avatar {
        float: left;
        margin-top: 8px;
        margin-top: 0.571428571rem;
    }
    .author-description {
        float: right;
        width: 80%;
    }

    /*.site {
        margin: 0 auto;
        max-width: 960px;
        max-width: 68.571428571rem;
        overflow: hidden;
    }*/

我也尝试过这里找到的解决方案:http://wordpress.org/support/topic/removing-page-title-and-white-space-from-twenty-twelve-theme

1 个答案:

答案 0 :(得分:2)

我猜你已经登录了你的网站,而且wp-admin栏移动了html / body(html {margin-top:32px!important;}等等。)当您重新登录时,重要的样式会被送入头部?

相关问题