Hi there! I have a 2 part question:
1) How do I change the blog pagination (the numbers with the circles) to simple previous/next buttons?
2) How can I have those previous/next buttons so that instead of going to url.com/page/2/ and url.com/page/3/ they show the post url instead? I’ve been told I can replace the page style navigation with previous_post_link() and next_post_link().
Would this be possible? If #1 isn’t possible is #2?
Thanks!
Hi kellymarie2001!
Thank you for using Enfold.
This will require custom modifications on the theme. Try to edit includes > loop-index.php, look for this code:
if(empty($avia_config['remove_pagination'] ))
{
echo "<div class='{$blog_style}'>".avia_pagination('', 'nav')."</div>";
}
Replace it with:
echo "<div class='custom-pagination'>";
global $wp_query;
$page = $wp_query->max_num_pages;
$args = array(
'format' => 'page/%#%',
'total' => $page,
'type' => 'plain',
);
echo paginate_links( $args );
echo "</div>";
I’m not sure if this is going to work properly on archive pages. Refer to this link for more info: https://codex.wordpress.org/Function_Reference/paginate_links
Regards,
Ismael
Hi! Unfortunately it didn’t work :(
Hey!
Like I said, it will require custom modifications on the theme. I’m sorry but you will need to hire a freelance developer to configure the script properly. Please contact codeable: http://kriesi.at/contact/customization
Best regards,
Ismael