如何将 WooCommerce 中的评论评级图像从当前的“S”更改为实际的星级图像?
经过一番谷歌搜索后,我尝试了以下方法:将主题评级替换为 WooCommerce 星级
但这不起作用。它只是将 S 更改为小方框。
当前CSS:
.woocommerce .star-rating {
float:right;
overflow:hidden;
position:relative;
height:1em;
line-height:1;
font-size:1em;
width:5.4em;
font-family: HelveticaNeue-Light, Helvetica Neue Light;
}
.woocommerce .star-rating:before {
content:"\73\73\73\73\73";
color:#d3ced2;
float:left;
top:0;
left:0;
position:absolute;
}
.woocommerce .star-rating span {
overflow:hidden;
float:left;
top:0;
left:0;
position:absolute;
padding-top:1.5em;
}
.woocommerce .star-rating span:before {
content:"\53\53\53\53\53";
top:0;
position:absolute;
left:0
}
在你的 CSS 中使用它:
.woocommerce .star-rating span {
font-family:star;
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)