RiPro美化教程
Content
本文最后更新于 2022-12-09,已超过 365 天未更新,内容可能已失效。
10、底部纯文本文章列表
修改后的效果

/*底部纯文本文章列表*/
.sjblog-list {
height: 90px;
background: #333;
border-radius: 4px 4px 0 0;
padding: 24px;
margin: -20px -20px 22px -20px;
position: relative;
}
h4.sjblog-h4 {
margin-bottom: 0;
text-align: center;
color: #fff;
position: relative;
z-index: 1;
}
.sjblog-h4 a{
color: #fff;
}
span.sjblog-esc {
text-align: center;
line-height: 38px;
color: rgba(255, 255, 255, 0.6);
position: relative;
z-index: 1;
display: block;
}
.sjblog-cover {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: #0000008c;
border-radius: 4px 4px 0 0;
z-index: 0;
}
.uposts .post-num.num-1 {
color: #F44336;
}
.uposts .post-num.num-2 {
color: #4CAF50;
}
.uposts .post-num.num-3 {
color: #FFC107;
}
.uposts .post-num.num-4 {
color: #00BCD4;
}
.uposts .post-num.num-5 {
color: #2196F3;
}
.uposts .post-num.num-6 {
color: #E91E63;
}
.uposts .post-num.num-7 {
color: #4196F3;
}
.uposts .post-num.num-8 {
color: #E21E63;
}
.uposts .hentry .post-num{
background-color: inherit;
}
11、文章标题优化

第一步diy.css 添加样式
/*文章标题优化*/
.sjblog-avatar {
width: 50px;
float: left;
}
.sjblog-avatar img {
float: left;
width: 50px;
border-radius: 50%;
margin-right: 20px;
}
.sjblog-tgroup{
padding-left: 66px;
padding-bottom: 20px;
border-bottom: 1px solid #f5f5f5;
margin-bottom: 20px;
}
.article-content .entry-header .entry-title{
padding-bottom:0;
margin-bottom: 0;
border-bottom: none;
}
.sjblog-name {
display: block;
font-size: 13px;
color: #cdcdcd;
}
.sjblog-name a{
color: #cdcdcd;
}
.sjblog-name a:hover{
color: #2756fc;
}
.sjblog-time {
margin-left: 20px;
}
第二步:打开wp-content/themes/ripro/parts,找到文件“single-header.php”编辑修改成以下代码:
<div class="cao_entry_header">
<div class="sjblog-avatar"> <?php echo get_avatar( get_the_author_meta( 'email' ), '96', null, get_the_author_meta( 'display_name' ) ); ?> </div>
<div class="sjblog-tgroup">
<?php edit_post_link('[编辑]'); ?>
<?php
if ( ! is_page() ) {
cao_entry_header( array( 'tag' => 'h1') );
} else {
cao_entry_header( array( 'tag' => 'h1', 'link' => false ) );
}
get_template_part( 'parts/entry-subheading' );
?>
<header class="entry-header">
<span class="sjblog-name">By: <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID', $author_id ) ) ); ?>"><?php the_author(); ?></a> <span class="sjblog-time"> <i class="fa fa-clock-o"></i> <?php echo the_time('Y-m-j'); ?></span> <span class="sjblog-views"> <?php echo '<i class="fa fa-eye"></i> '._get_post_views();?> </span> views</span>
</div>
</div>
除非注明,子佩工作室 文章均为原创,转载请以链接形式标明本文地址。


![riplus子主题-子佩主题2.0.0[送ripro子主题一份]](https://www.helloimg.com/images/2021/01/09/8fb95be2b7c89307dc09f4fb7fc737dc3111a638f80835df.png)




登录后即可发表评论
全部评论 (4)
这一个
小工具添加 你资源设置了价格就会显示的
价格上面 免费开通总监特权 那个添加教程分享下呗
您说的哪个?