How to Remove Numbers from Pagination

Posted in: Newsmag
Post count: 2

Hi,

I want to remove all these page numbers from pagination. i have tried all the codes and unable to do so. i have tried all functions but these are in newsmag somewhere, i have delete the pagination to post function but it still appear.

Post count: 7909

Hi,

Do you use a pagination plugin for articles or did you made custom modification to the pagination function?
Also you can change the post pagination – https://codex.wordpress.org/Function_Reference/wp_link_pages

Thanks!

Post count: 2

Hi Alin,

i used this Code and some css to get this. link is

-> http://thatpedia.com/0502-3560/

<?php

global $multipage, $numpages, $page ;

if( $multipage && $page == $numpages ) {

echo “<div class=’next-back’><div class=’next’>”;

previous_post_link(‘%link’, ‘NEXT’, TRUE);

echo “</div></div>”; }

$args = array(

‘before’ => ‘<div class=”next-back”>’,

‘after’ => ‘</div>’,

‘link_before’ => ”,

‘link_after’ => ”,

‘next_or_number’ => ‘next’,

‘nextpagelink’ => __(‘<div class=”next”>NEXT</div>’),

‘previouspagelink’ => __(‘<div class=”prev”>BACK</div>’),

‘pagelink’ => ‘%’,

‘more_file’ => ”,

‘echo’ => 1 ); ?>

<?php

wp_link_pages( $args );

?>

Post count: 6600

Hi,

You can use the original post pagination and hide the page numbers from pagination via css, like this: https://forum.tagdiv.com/topic/make-the-pagination-buttons-2/

This how you can use it in your case: http://screencast.com/t/9fQbHoJTRVER

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

Thanks

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