Reverse columns on every 2nd post in archive layout

hi,

is there a possibility in an archive layout in the layout builder, to chanege on every 2nd post to a different background color (1st = white, 2nd = blue, 3rd =white, 4th = blue,…), different headline color and the columns (from image|text to text|image) to reverse? or do I have to do that in css?

thanks in advance for the help!
harry

Hello Harry,

Thanks for writing in! What you are trying to do is a complex layout which you cannot do it with the Looper Provider/Looper Consumer. The easiest way is to run One Looper Provider and run several Looper Consumers.

Looper Provider 
       Row with 1st = white, 2nd = blue layout
              Looper Consumer column which displays 2 items only
       Row with 3rd = blue, 4th = white layout
              Looper Consumer column which displays 2 items only

Hope this makes sense.

hi,

thanks for your help. since this is not really flexible, i did it with nth-child in css.

thanks again
cheers harry

Hi Harry,

Glad that you are able to find a solution to this.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.