Customizing the newer posts/older posts links
-
Hi guys.
I am attempting to customize the newer posts/older posts links that appear at the bottom of the main blog page when the page contains more than X posts, x being whatever we define in the WordPress options. I want to add an “Archives” link after both of these, similar to what Kottke.org does (scroll to the bottom of his blog and you will see “older posts” followed by a link to his archives)
I’ve been browsing through all the 2019 theme files and I can’t for the life of me see where to add this. So far I added it to the index.php file, right after the call to to the nav function. Like this:
twentynineteen_the_posts_navigation();
?><div>There is more in the archives</div><?phpBut the problem here is that the archives link appears outside of the nav class in the finished page, so to get it on the same line I have to resort to position: relative hijinks in css.
There must be a better way to do this. Any help? Does what I want make sense? If not, I will post a photo of when I want, but basically just like on Kottke’s page.
Thanks!
- The topic ‘Customizing the newer posts/older posts links’ is closed to new replies.