We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ba7cb commit 5143645Copy full SHA for 5143645
lib/extras.php
@@ -82,4 +82,20 @@ function bfg_viewport_value() {
82
// }
83
84
return $defaults;
85
+} );
86
+
87
+add_filter( 'wp_link_pages_args', function( $params ) {
88
+ $params['before'] = '<ul class="post-pagination">';
89
+ $params['after'] = '</ul>';
90
+ return $params;
91
92
93
+add_filter( 'wp_link_pages_link', function( $link ) {
94
+ // var_dump( $link[1] );
95
+ if ( $link && 'a' !== $link[1] ) {
96
+ $link = '<li class="page-item active"><a href="#">' . $link . '</a></li>';
97
+ } else {
98
+ $link = '<li class="page-item">' . $link . '</li>';
99
+ }
100
+ return $link;
101
} );
0 commit comments