Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi!

    Add this code in functions.php file of your child theme

    add_filter('yasr_vv_ro_shortcode', 'yasr_stats_ro', 10, 2);
    
    function yasr_stats_ro($shortcode_html, $ratings) {
        $post_id = get_the_ID();
        //icon
        $span_dashicon = "<span class='dashicons dashicons-chart-bar yasr-dashicons-visitor-stats' data-postid='$post_id' id='yasr-total-average-dashicon-$post_id'></span>";
    
        return $shortcode_html.$span_dashicon;
    }

    Best,
    Dario

    Thread Starter 2TheMoon

    (@ruskiller777)

    this code will running every time on all pages of my website or will loaded only once? i really think about perfomance

    Thread Starter 2TheMoon

    (@ruskiller777)

    and it shows zero’s rating for each star

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘stats on readonly’ is closed to new replies.