• Resolved solerous

    (@solerous)


    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)
  • Plugin Author Kemory Grubb

    (@w33zy)

    You could just copy that function to your theme’s functions file, rename it and call it from there instead of using the plugin’s function for that feature.

    The pre-release version of the plugin was using FontAwesome but the idea of bundling and loading the entire FA library for 1 font-set didn’t sit well with me so I removed it.

    Thread Starter solerous

    (@solerous)

    Thanks for the response. I do have a function for this defined in functions.php, however, I don’t know how to get the plugin code to call it for the custom post type in review.php.

    Plugin Author Kemory Grubb

    (@w33zy)

    If the function exists in your functions.php file then you can call it in the appropriate template file where you want it displayed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying stars using fontawesome’ is closed to new replies.