Make the pagination buttons

Posted in: Newspaper
Post count: 14

Hello.

When I use <!–nextpage–> I want to use next and previous buttons instead of this:

http://dl.dropbox.com/u/196843290/DBUpload/20140814.073419.png

But when I use this code:

<?php wp_link_pages(array('before' => '', 'next_or_number'=>'next', 'previouspagelink' => '
<div class="navbutton" style=" float: left;">Prev</div>', 'nextpagelink'=>'
<div class="navbutton" style=" float: right;">Next</div>')); ?>
<div style="clear: both;"></div>

It displays as this:

http://dl.dropbox.com/u/196843290/DBUpload/20140814.073521.png

How do I get rid of the 1,2,3,4,5 bit, but keep the next and prev bits?

Thanks

Post count: 3343

Hello,
There is a bug in that function from WP, is reported on their issue tracker, what you can do is to hide the numbers via CSS, use this CSS, add it in Theme panel -> Custom CSS

.post div.page-nav-post a:first-Child {
display:inline-block;
}
.post div.page-nav-post a:last-Child {
display:inline-block;
}
.post .page-nav-post a {
display:none;
}
.post .page-nav-post > span {
display:none;
}

Thanks for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.