Hello Jeff,
I have this on my functions.php file:
function hms_rating_override($text) {
/**
* Detect the current rating
*/
$matches = null;
$getMatches = preg_match('/data-rating=\"(\d)\"/', $text, $matches);
if ( count($matches) == 2 ) {
$rating = $matches[1];
return '<img src="/Users/user/Documents/Webpages/Wordpress/gomezcleaningservices.com/wp-content/themes/GCS_theme/images/ratings/' . $rating . '.png>" alt="' . $rating . ' out of 5 stars" itemprop="ratingValue" />';
}
return $text;
}
add_filter('hms_testimonials_system_rating', 'hms_rating_override');
And I am positive that the images are where they are supposed to be. For example, this address displays for me a 5 star icon: file:///Users/user/Documents/Webpages/Wordpress/gomezcleaningservices.com/wp-content/themes/GCS_theme/images/ratings/5.png
But at the moment, when I go into my testimonials page, I get a broken image. Do you have any suggestions?
Thanks in advance.