[Resolved] Adding lines above and below the "previous/next post"

Home Forums Support [Resolved] Adding lines above and below the "previous/next post"

Home Forums Support Adding lines above and below the "previous/next post"

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #969581
    Melissa

    How can I add a single line <br> above and below the “previous/next post” section at the bottom of single posts? There doesn’t seem to be a hook between the post text and the “previous/next post”.

    #969626
    Leo
    Staff
    Customer Support

    Hi there,

    Can you try creating a custom hook and use this?
    https://docs.generatepress.com/article/generate_paging_navigation/

    Let me know if this helps ๐Ÿ™‚

    #969682
    Melissa

    It didn’t seem to have any effect.

    #969815
    David
    Staff
    Customer Support

    Hi there,

    do you want to just add some additional space above and below the post navigation? If so some CSS like this will help:

    #nav-below {
        margin-top: 4em;
        margin-bottom: 2em;
    }
    #970051
    Melissa

    No, I want a line

    #970248
    Leo
    Staff
    Customer Support

    What about this?

    #nav-below {
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
    }
    #970268
    Melissa

    Perfect! Thanks!

    #970332
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.