有用户问怎么弄的这些美化今天就随便找2个比较多人用的分享给大家

教程开始

1、找到wp-content/themes/ripro/assets/css/diy.css并将附件内的diy.css内容整体复制进去并保存

2、找到/wp-content/themes/ripro/inc/theme-functions.php并搜索

entry-meta

可以看到以下代码

<div class="entry-meta">
        <?php if ( $options['author'] ) :
          $author_id = get_post_field( 'post_author', $post_id ); ?>
          <span class="meta-author">
            <a<?php echo _target_blank();?> href="<?php%20echo%20esc_url(%20get_author_posts_url(%20get_the_author_meta(%20'ID',%20$author_id%20)%20)%20);%20?>">
              <?php
                echo get_avatar( get_the_author_meta( 'email', $author_id ), '40', null, get_the_author_meta( 'display_name', $author_id ) );
                echo get_the_author_meta( 'display_name', $author_id );
              ?>
            </a>
          </span>

3、并将附件内的theme-functions.php内容整体复制进去放在最后面的</span>后面并保存

效果样式

隐藏内容
本内容需权限查看
  • 注册用户: 5.9CB
  • 会员: 免费
  • 永久会员: 免费
1.本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2.分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3.不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4.本站提供的源码、模板、插件等其他资源,都不包含技术服务请大家谅解!
5.如有链接无法下载或失效,请联系管理员处理!
6.本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!