pryley
3/23/2017 - 10:34 PM

[Site Reviews snippet] Remove the dash in front of the review author name.

[Site Reviews snippet] Remove the dash in front of the review author name.

<?php

// Add this snippet to your active theme's functions.php file
add_filter( 'site-reviews/rendered/partial', function( $rendered, $partial ) {
    if( $partial == 'reviews' ) {
        $rendered = str_replace( '<p class="glsr-review-author">&mdash;', '<p class="glsr-review-author">', $rendered );
    }
    return $rendered;
}, 10, 2 );