Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Endless loop for post navigation?

  • Hi team

    my difficult client complains that the post navigation does not work in an endless loop.
    He would like to have another button here (this is the first post) that leads back to the previous post.

    If that doesn’t work, he would like the button to the next post not to be on the left, as it is here, but on the right, so that it is clearer that it continues on the right.

    I have no idea how to implement this.

    Is there a possibility to build an endless loop for the post navigation?

    Thank you !!

  • Hi there,

    1. Select the Grid block, create a selector > *:last-child, so the new selector would be .gb-element-92f0846d > *:last-child.

    2. The set the .gb-element-92f0846d > *:last-child‘s grid-column to 2/3.

  • Many thanks Ying,

    this works only well for the first post, but now there is the problem that the button on the last post is unfortunately also on the right side, here it should be correctly on the left.

    Question: there is no infinite loop for the post navigation?

  • Question: there is no infinite loop for the post navigation?

    There are no built-in options; you need to write custom JavaScript for that.

    And ignore my solution provided previously, and simply set the previous post container’s grid-column to 1/2, and next post container’s grid-column to 2/3.

  • Thank you Ying!

    This only works partially.
    Unfortunately, it no longer works on mobile, the boxes don’t stack then.

  • Set the grid-column of the next post to 1/2 on mobile.

  • Thank you very much !!! 🙂

  • No Problem 🙂

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