Merge pull request #1838 from IanDelMar/pagination
Remove hover styles and link color from dots in pagination
This commit is contained in:
commit
3a47cd078d
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue