Can I add custom CSS to posts_nav_link?
-
I want to add a class to the previous and next page links, however I can’t find an easy way to do this.
The only way I’ve found is adding a span inside the links by using:
<?php posts_nav_link(' - ','<span class="newer">Newer Posts</span>','<span class="previous">Previous Posts</span>'); ?>
This isn’t ideal, but it works. I’d rather have no span tags and the class’ on the links.
Is that possible?
- The topic ‘Can I add custom CSS to posts_nav_link?’ is closed to new replies.