Archived topic
Layout number of page
7 replies · Started by steven on June 6, 2022
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
of course ;
Hi there,
1. You can add this PHP Snippet to change the Next and Previous text to just icons:
add_filter( 'generate_next_link_text', function() {
return '→';
} );
add_filter( 'generate_previous_link_text', function() {
return '←';
} );
2. Add this CSS for the style:
.paging-navigation .nav-links {
display: flex;
}
.paging-navigation .nav-links .page-numbers {
display: block;
min-width: 40px;
line-height: 40px;
text-align: center;
border: 1px solid #ccc;
border-radius: 6px;
margin-right: 5px;
font-weight: bold;
}
.paging-navigation .nav-links a:hover,
.paging-navigation .nav-links .current {
background-color: #000000;
color: #fff;
}
Hi David, how are you ? ! Thanks for your help. It's working :)
Do you know if it's possible to remove underline ?
Really well - thanks for asking :)
Try this CSS to remove the underline:
.nav-links a {
text-decoration: none;
}
THanks you david.
You're welcome