百度未收录

WordPress子比主题修改“付费资源”文字为图标

很多使用子比主题的站长朋友都感觉付费资源图标显示太长,都有意想修改为图标显示,子比官网也有人分享过这方面的教程,但是需要付费购买,狐狸库找了下相关教程,做一下记录,也跟大家分享一下怎么改掉它!

效果演示

WordPress子比主题修改“付费资源”文字为图标-狐狸库

使用方法

文件路径:zibll\inc\functions\zib-posts-list.php

搜索【$mark = zibpay_get_pay_mark();】后面添加以下代码

      $svg = '<symbol id="icon-points" viewBox="0 0 1024 1024">
<path d="M419.886252 370.432927c119.605022 0 243.995044-26.302516 318.706976-76.460106v91.304594h69.207683V185.366307C807.800911 65.18189 607.999688 0.289697 420.006126 0.289697S32.091467 65.18189 32.091467 185.366307v545.629859c0 120.184417 199.801223 185.076609 387.794785 185.07661V846.984967c-197.463666 0-318.706976-67.579385-318.706976-115.978811V566.977553c74.711932 50.037714 198.992069 76.460105 318.706976 76.460105v-69.217673c-197.463666 0-318.706976-67.569395-318.706976-115.968822V294.102686c74.711932 50.027725 199.111944 76.330241 318.706976 76.330241z m0-301.045432c197.473655 0 318.706976 67.579385 318.706976 115.978812 0 48.399426-121.24331 115.978811-318.706976 115.978811s-318.706976-67.579385-318.706976-115.978811c0.00999-48.399426 121.363185-115.978811 318.706976-115.978812z m310.056015 338.925849c-171.740545 0-261.536715 66.060971-261.536714 131.29281v350.623625c0 65.231838 89.906055 131.292809 261.536714 131.29281 170.461881 0 260.128186-65.121953 261.526725-129.894271h0.119875V539.616143c-0.119875-65.241827-89.906055-131.302799-261.6466-131.302799z m0 69.097799c126.967329 0 192.438916 43.604437 192.438917 62.195011s-65.471587 62.195011-192.438917 62.195011-192.438916-43.604437-192.438916-62.195011 65.471587-62.195011 192.438916-62.195011z m0 475.013648c-126.967329 0-192.438916-43.604437-192.438916-62.195012v-83.712527c43.844186 23.855073 108.26687 39.758456 192.438916 39.758456 84.172047 0 148.474855-15.893393 192.438917-39.758456v83.712527c0 18.590574-65.471587 62.195011-192.438917 62.195012z m0-175.366756c-126.967329 0-192.438916-43.614426-192.438916-62.195011v-83.712527c43.844186 23.855073 108.26687 39.748466 192.438916 39.748466 84.172047 0 148.474855-15.893393 192.438917-39.748466v83.712527c0 18.580585-65.471587 62.195011-192.438917 62.195011z m0 0"></path></symbol>';

搜索以下代码

<span class="em09 ml3">' . $mark . '</span>

替换为以下代码

<svg class="icon"><use xlink:href="#icon-points"></use></svg>

替换图示

WordPress子比主题修改“付费资源”文字为图标-狐狸库
温馨提示:本文最后更新于2023/04/08 00:09:34。若文章内容或图片失效,请留言联系站长反馈!
!
也想出现在这里? 联系我们
创意广告
© 版权声明
THE END
点赞1赞赏 分享
评论 共2条

请登录后发表评论

    请登录后查看评论内容