- 如何将WordPress的默认主题TwentyFourteen居中显示
找到文件cp-content/theme/twentyfourteen/style.css,然后在最后面添加以下代码: [codesyntax lang="css" lines="normal"]
.site,
.site-header {
margin-left: auto;
margin-right: auto;
}
[/codesyntax]
- 如何将WordPress的默认主题TwentyFourteen平铺显示
找到文件cp-content/theme/twentyfourteen/style.css,然后在最后面添加以下代码: [codesyntax lang="css" lines="normal"]
.site,
.site-header {
max-width : 100%;
}
[/codesyntax]
找到文件cp-content/theme/twentyfourteen/css/editor-style.css,然后在最后面添加以下代码: [codesyntax lang="css" lines="normal"]
html .mceContentBody {
font-size: 100%;
max-width: 100%;
}
[/codesyntax]
add_filter('login_headerurl', create_function(false, "return get_bloginfo('url');"));
add_filter('login_headertitle', create_function(false, "return get_bloginfo('name');"));
add_action('login_head', 'suren_login_logo'); function suren_login_logo() { echo '<style type="text/css">.login h1 a{background-image:none, url("http://surenpi.com/wp-content/uploads/2015/03/arch.jpg");}</style>'; }