How to disable half stars in PokaTheme
In Poka theme from v3 and above half stars in ratings are by default enabled.
If you don’t want to show half stars then you can add the following to your functions.php in your child theme:
add_filter(‘poka_ratings_half_icon’, ‘__return_true’, 100);
How to set your own icons for the ratings
If you want to replace Poka theme stars with your own elements you can use the following filter:
add_filter(‘poka_rating_icons_array’,’poka_change_rating_icons’);
function poka_change_rating_icons(){
return array(
'full_star' => '<span class=”icon icon-full”></span>',
'half_star' => '<span class=”icon icon-half”></span>',
'empty_star' => '<span class=”icon icon-empty”></span>',
);
}
-
This topic was modified 5 years, 3 months ago by admin.
-
This topic was modified 5 years, 3 months ago by admin.
-
This topic was modified 5 years, 3 months ago by admin.
-
This topic was modified 5 years, 3 months ago by admin.
-
This topic was modified 5 years, 3 months ago by admin.