A258 RIPRO主题美化-文章列表页面右上角3个彩色圆点效果
有用户问怎么弄的这些美化今天就随便找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" rel="external nofollow" 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>后面并保存
效果样式
版权声明
本文仅代表作者观点,不代表xx立场。
本文系作者授权xx发表,未经许可,不得转载。
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。