1. Updated CSS here:https://generatepress.com/forums/topic/next-and-previous-buttons-in-pagination-instead-of-numbers/#post-2216881
2. Solution 1:
You can try this:
.paging-navigation {
display: flex;
justify-content: space-between;
}
But it won’t work when there’s only next
or previous
.
Solution 2:
Add this PHP snippet to add class to the links:
add_filter('next_posts_link_attributes', 'posts_link_attributes_next');
add_filter('previous_posts_link_attributes', 'posts_link_attributes_previous');
function posts_link_attributes_next() {
return 'class="next-page"';
}
function posts_link_attributes_previous() {
return 'class="previous-page"';
}
Then add this CSS:
.paging-navigation {
display: flex;
justify-content: space-between;
}
.paging-navigation >a.next-page {
margin-left:auto;
}