Wordpress主题自定义

  • 如何将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>'; }

转载于:https://my.oschina.net/surenpi/blog/481794

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值