Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Changing default ratings icon in testimonial block

Home / Forums / Kadence Blocks / Changing default ratings icon in testimonial block

This topic is: Not Resolved
[Not Resolved]
Posted in: Kadence Blocks
June 18, 2022 at 4:16 am

Hi there
I am trying to change the default ratings star icon to a different one (more pointed) using the approved method detailed here:
but it doesn’t change.

My code snippet is this:

add_filter( ‘kadence_svg_icon’, ‘change_ratings_icon’, 10, 4 );
function change_ratings_icon( $output, $icon, $icon_title, $base ) {
if ( ‘kt-svg-testimonial-rating-icon’ === $icon ) {
return ‘<svg xmlns=” width=”24″ height=”24″ viewBox=”0 0 24 24″><path d=”M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z”/></svg>’;
}
return $output;
}

Am I using the wrong icon name ‘kt-svg-testimonial-rating-icon’?

Many thanks for your help in advance.
Richard

  • The forum ‘Kadence Blocks’ is closed to new topics and replies.