【发布时间】:2021-09-20 19:20:14
【问题描述】:
如何将 WooCommerce 中的评论评级图像从当前的“S”更改为实际的星级图像?
经过良好的谷歌搜索后,我尝试了这个:Replace theme ratings with WooCommerce stars
但它不起作用。它只是将 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
}
【问题讨论】:
标签: php css wordpress woocommerce