Current Page Filter
-
Hi,
Thanks for creating this great plugin.I’d like to style the currently active page number with a different color. To do this I thought I could use your currentpage filter:
add_filter(‘wp_pagenavi_class_page’, ‘theme_pagination_page_class’);
function theme_pagination_page_class($class_name) {
return ‘pagination__current-page’;
}However, this is adding the same class to EVERY page number and not just the active one.
Any help much appreciated.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Current Page Filter’ is closed to new replies.