wordpress日历美化

说明:
wordpress自带的日历相对较丑,因此决定改一下。这里是通过改主题的style.css来实现美化。

实现:
可以通过后台|外观|编辑|选择style.css或站点目录/wp-content/themes/主题/style.css,将包含calendar的内容替换为以下:

#wp-calendar {
	margin: 0;
	width: 100%;
	font-size: 13px;
	font-size: 0.928571429rem;
	line-height: 1.846153846;
	color: #686868;
}
#wp-calendar #today {
        background:#E6E6E6;
}
#wp-calendar th {
        background:#999;
        color:#FFF;
        text-align:center;
}
#wp-calendar td {
	text-align:center;
}
#wp-calendar caption {
       letter-spacing:-0.05em;
       font-size:100%;
       text-align:left;
       padding-bottom:5px;
}
#wp-calendar td#prev {
       text-align:left;
}
#wp-calendar #next {
       text-align: right;
}

即可实现博客右侧日历效果。

“wordpress日历美化”的一个回复

六月雪进行回复 取消回复

邮箱地址不会被公开。 必填项已用*标注