Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Removed anchor from current page pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-marshall committed Aug 29, 2017
1 parent c2fca14 commit 56cd191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/foundation.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function foundationpress_pagination() {
'type' => 'list',
) );

$paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination text-center'>", $paginate_links );
$paginate_links = str_replace( "<ul class='page-numbers'>", "<ul class='pagination text-center' role='navigation' aria-label='Pagination'>", $paginate_links );
$paginate_links = str_replace( '<li><span class="page-numbers dots">', "<li><a href='#'>", $paginate_links );
$paginate_links = str_replace( "<li><span class='page-numbers current'>", "<li class='current'><a href='#'>", $paginate_links );
$paginate_links = str_replace( '</span>', '</a>', $paginate_links );
$paginate_links = str_replace( "<li><span class='page-numbers current'>", "<li class='current'>", $paginate_links );
$paginate_links = str_replace( "<li><a href='#'>&hellip;</a></li>", "<li><span class='dots'>&hellip;</span></li>", $paginate_links );
$paginate_links = preg_replace( '/\s*page-numbers/', '', $paginate_links );

Expand Down

0 comments on commit 56cd191

Please sign in to comment.