• To remove the voting stars from feeds and pages, open post-star-rating.php and change the function

    function PSR_show_voting_stars_filter($text) {
      global $PSR;
    
    	 return $text . $PSR->getVotingStars();
    }

    to

    function PSR_show_voting_stars_filter($text) {
      global $PSR;
    
    	if ( !is_feed() && !is_page() )
    	 return $text . $PSR->getVotingStars();
    }
Viewing 1 replies (of 1 total)
  • Thread Starter shiv379

    (@shiv379)

    Sorry, my bad, change it to:

    function PSR_show_voting_stars_filter($text) {
      global $PSR;
    
    	//echo $PSR->getVotingStars();
    	if ( !is_feed() && !is_page() ) {
    	 return $text . $PSR->getVotingStars();
    	 } else {
    	 return $text;
    	 }
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Post Star Rating: Removing stars from pages and feeds…’ is closed to new replies.