Created
March 23, 2017 22:34
-
-
Save pryley/85d72fcc41993ddf7fe8f7111447daab to your computer and use it in GitHub Desktop.
[Site Reviews snippet] Remove the dash in front of the review author name.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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">—', '<p class="glsr-review-author">', $rendered ); | |
} | |
return $rendered; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment