Hello @enet2020 ,
Thank you for reporting this issue.
We are working on a fix and will release an update shortly. Once the update is available, please update to version 3.3.8 or later and let us know if this resolves the issue.
We apologize for the inconvenience and appreciate your patience.
Hi again,
@enet2020 ,
Very thank for quickly reply.
1 hour ago get update to version 3.3.8
Problem is resolved.
Very thanks again for help and fixing a key thing for blind users. Thanks to this, they can use websites with your solution without any problems.
Gretings from Poland
\Mateusz
Hi @enet2020 ,
We are glad your issue was resolved. Thank you again for reporting this!
Hi again,
@altesin
Sorry, but now I saw that after adding an opinion, the stars on the website are not read by the screen reader, can the current stars be replaced with the symbol: *?
This will help blind users understand how many stars have been awarded. Because he’s not reading anything these days.
Very thanks.
Mateusz
Hello again @enet2020,
We’ve added alternative text for the displayed rating stars to make them accessible to screen readers, and we’ve released an update containing this change.
If you still wish to change the star icons to the * character, please add the following function to your theme’s functions.php file:
function st_rating_stars_to_asterisks( $field, $value ) {
$value = (int) $value;
if ( ! $value ) {
return '';
}
$label = sprintf( __( 'Rated %d out of 5 stars', 'strong-testimonials' ), $value );
$stars = str_repeat( '*', $value );
return sprintf(
'<span class="strong-rating-wrapper"><span class="strong-rating-text">%s</span><span aria-hidden="true">%s</span></span>',
esc_html( $label ),
esc_html( $stars )
);
}
add_filter( 'wpmtst_output_star_rating', 'st_rating_stars_to_asterisks', 10, 2 );
You can add it by going to WordPress Dashboard → Appearance → Theme File Editor → Theme Functions (functions.php), then paste the function at the end of the file and save the changes.
Alternatively, if your site uses a child theme, we recommend adding it to the child theme’s functions.php file.