Skip to content

Instantly share code, notes, and snippets.

@pryley
Created March 23, 2017 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pryley/85d72fcc41993ddf7fe8f7111447daab to your computer and use it in GitHub Desktop.
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.
<?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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment