WordPress.org

Forums

kk Star Ratings
Display stars without rating (4 posts)

  1. ewx
    Member
    Posted 1 year ago #

    Hi!
    I would like to display only the rated stars in the archive view (loop) but without the ability to rate.

    Is there any option or parameter of function "kk_star_ratings"?

    Thanks!
    enno

    http://wordpress.org/plugins/kk-star-ratings/

  2. torozov
    Member
    Posted 1 year ago #

    I was looking for the same.
    Thanks in advance!

  3. IrfanAnsari
    Member
    Posted 1 year ago #

    To Achieve mentioned feature, you have to edit plugin in file index.php
    find this code around between 480 to 500 and edit as per your markup you required.

    $pos = parent::get_options('kksr_position');

    $markup = '

  4. torozov
    Member
    Posted 1 year ago #

    Thank you very much!!!
    I've edited the code so users won't be able to vote on homepage and categories:

    <div class="kk-star-ratings '.($disabled || (is_home() && parent::get_options('kksr_disable_in_archives')) || (is_category() && parent::get_options('kksr_disable_in_archives')) ? 'disabled ' : ' ').$pos.($pos=='top-right'||$pos=='bottom-right' ? ' rgt' : ' lft').'" data-id="'.$id.'">

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • kk Star Ratings
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags