Displaying stars using fontawesome
-
So I replaced the code in function get_the_rcno_admin_book_rating (in class-rcno-template-tags.php) with stuff like this:
case 4:
return ‘<div class=”rcno-admin-rating” style=”background: ‘ . $background . ‘”>
<span><i class=”fa fa-star”></i></span><span><i class=”fa fa-star”></i></span><span><i class=”fa fa-star”></i></span><span><i class=”fa fa-star”></i></span><span><i class=”fa fa-star-o”></i></span></span>
</div>’;
break;But I know you’re not supposed to do it that way and that future updates will wipe this out. What’s the right way to do this? I tried adding a hook but I’m pretty inexperienced with the coding side of things.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Displaying stars using fontawesome’ is closed to new replies.