Created
June 13, 2018 14:18
-
-
Save djrmom/c14b62ab03a2587ebd642e93d5a717a5 to your computer and use it in GitHub Desktop.
facetwp add rel nofollow to pager
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 | |
/** basic string replace to add nofollow to pager html **/ | |
add_filter( 'facetwp_pager_html', function( $output, $params ) { | |
$output = str_replace( 'a class="facetwp-page', 'a rel="nofollow" class="facetwp-page', $output ); | |
return $output; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment