Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
[WP] Override wp-pagenavi markups to Bootstrap's pagination using jQuery
* wp-pagenavi styling script
$wp_pagenavi = jQuery('.wp-pagenavi');
/** Constructing the bootstrap pagination markups */
$wp_pagenavi.addClass('pagination').wrapInner('<ul />')
.find('span').wrap('<a />');
$wp_pagenavi.find('a').wrap('<li />');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment