Wordpress主题自定义

  • 介绍
本文介绍如果修改TwentyFourteen中的一些风格。
  • 如何将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]
  • 如何将Wordpress的文章编辑区域变宽
找到文件cp-content/theme/twentyfourteen/css/editor-style.css,然后在最后面添加以下代码: [codesyntax lang="css" lines="normal"]
html .mceContentBody {
        font-size: 100%;
        max-width: 100%;
}
[/codesyntax]
  • 自定义Logo链接
add_filter('login_headerurl', create_function(false, "return get_bloginfo('url');"));
  • 自定义Logo提示信息
add_filter('login_headertitle', create_function(false, "return get_bloginfo('name');"));
  • 自定义Logo图片
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>'; }

你可能感兴趣的:(css,wordpress,自定义,主题)