Site logo

[Resolved] Next – Previous in one row?

Home Forums Support [Resolved] Next – Previous in one row?

Home Forums Support Next – Previous in one row?

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #292283
    Tom
    Lead Developer
    Lead Developer

    You would add this function: https://gist.github.com/generatepress/dc79fa83d8706f19365aa07ddd141cd3

    Then this CSS:

    .post-navigation img {
        width: 50px;
        display: inline-block;
        vertical-align: middle;
        margin: 0 5px;
    }

    The styling might need some tweaking, but that should get you close 🙂

    #292632
    eduard sans

    This is all I needed, I’ll handle the css ;). Thank you so much Tom!! keep up the great work and the amazing support you’re giving, for real!

    #292886
    Tom
    Lead Developer
    Lead Developer

    Glad I could help! 🙂

    #866640
    Callista

    Hi Tom,
    This is great! I have a small correction. I was trying to get it to work but the images at the bottom were both of the previous post. So I did some digging and found that line 34 should be:
    $nextPost = get_next_post();
    (It currently says: $nextPost = get_previous_post();)
    I changed it and now it works perfectly!
    Thanks again!
    Best,
    Callista

    #866684
    Leo
    Staff
    Customer Support

    Glad you figured out 🙂

Viewing 5 posts - 16 through 20 (of 20 total)
  • The topic ‘Next – Previous in one row?’ is closed to new replies.