#精品
RIPRO主题美化列表页右上角的三个彩色点效果WordPress美化教程

2021-05-01 0 853

有很多小伙伴看到本站列表页面右上角有 3 个彩色圆点效果,写出教程!分享给大家~

教程开始

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?>" rel="external nofollow" > <?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>

 

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

 

收藏 (0)

微信支付 微信扫一扫

支付宝支付 支付宝扫一扫

点赞 (0)

站长资源下载中心-找源码上汇站

常见问题
  • 如果付款后没有弹出下载页面,多刷新几下,有问题联系客服!
查看详情
  • 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。
查看详情

相关文章

联系官方客服

为您解决烦忧 - 24小时在线 专业服务