Prev/Next at Bottom of Post

  • kevinw

    #9403

    I’d like to put the pointers to prev/next posts below a post as well as at the top, preferably between the post and any comments. Is that possible please and, if so, how?

    I started looking at this yesterday evening and had convinced myself it would be relatively easy but it’s a long time since I set our blog up and the solution eludes me.

    Thanks.

    Kevin

    Mod

    Kenneth John Odle

    #43547

    This is a really, really good idea actually, so I wrote a tutorial on how to do it, complete with pictures and code. You can read it here:

    If you know a little bit about WordPress functions, you can adapt this same idea to a number of other purposes. WordPress new code reference is here:

    Enjoy!

    kevinw

    #43548

    That was really easy to follow and works perfectly.

    Thanks for taking the time to create it.

    I think I’m going to modify the colour of the links as they tend to get lost in the background but I need to figure out how to do the same to the links at the top first.

    Kevin

    Mod

    Kenneth John Odle

    #43549

    Something like

    .post-nav a, .post-nav a:visited {color: #000000;}

    might do the trick.

    kevinw

    #43550

    Thank you again.

    I changed it to:

    .post-nav a, .post-nav a:visited, .previous, .next-post {	color: #8B0000;}

    To include the chevrons.

    Kevin

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!