Merge pull request #1838 from IanDelMar/pagination

Remove hover styles and link color from dots in pagination
This commit is contained in:
Brian Coords 2022-08-09 15:31:26 -07:00 committed by GitHub
commit 3a47cd078d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -69,7 +69,6 @@ if ( ! function_exists( 'understrap_pagination' ) ) {
if ( empty( $links ) ) {
return;
}
?>
<nav aria-labelledby="posts-nav-label">
@ -84,7 +83,11 @@ if ( ! function_exists( 'understrap_pagination' ) ) {
foreach ( $links as $key => $link ) {
?>
<li class="page-item <?php echo strpos( $link, 'current' ) ? 'active' : ''; ?>">
<?php echo str_replace( 'page-numbers', 'page-link', $link ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<?php
$search = array( 'page-numbers', 'dots' );
$replace = array( 'page-link', 'disabled dots' );
echo str_replace( $search, $replace, $link ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</li>
<?php
}