index.php I'm using 'paginate links'. I want to make a pagination where you have a button for previous, than the page numbers and then a button for next, like:
< PREVIOUS 1 2 3 4  6 7 8 9 NEXT >
When the user is on the first page the button for 'previous' must be unclickable and must have another background color than normal.
The problem here is that, when I'm on the first page the whole 'previous' button disappears(same on the next page), so that makes it impossible for me to look if it has a different class so I can give it a different styling...
So what I'm wondering is:
- How to make the Previous and Next button appear on every page (even on the first and last page)?
- If they appear, how do I remove the link from the previous button when I'm on the first page (and from the next button on the last page of course)
My pagination code is:
<?php echo paginate_links( array( 'base' => str_replace( 999, '%#%', get_pagenum_link( 999 ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'prev_text' => __('<div class="newspage previous">vorige</div>'), 'next_text' => __('<div class="newspage next">volgende</div>') ) ); ?>