-
Stefanie
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‘sgrid-columnto2/3. -
Stefanie
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-columnto1/2, and next post container’sgrid-columnto2/3. -
Stefanie
Thank you Ying!
This only works partially.
Unfortunately, it no longer works on mobile, the boxes don’t stack then. -
Set the
grid-columnof the next post to1/2on mobile. -
Stefanie
Thank you very much !!! 🙂
-
No Problem 🙂
- You must be logged in to reply to this topic.