Roots and PageNavi

I am using the PageNavi for the navigation, I want to use the Multiple Buttons Grups CSS from Bootstrap (version 2 by the way) but I can’t make it work. I tried the lazy way but unfortunately it didn’t work.

I tried this in the index.php:

<div class="btn-toolbar">
<div class="btn-group">

<?php wp_pagenavi(); ?>


Has anyone made this work?

You’ll either need to filter the WP-Pagenavi output and replace their classes with the Bootstrap ones, or apply the Bootstrap styles to the WP-Pagenavi classes in your LESS/CSS.

Might be easiest just to fork the WP-PageNavi plugin and change the markup to Bootstrap classes.