Alternating Post Layouts - Dynamic Content

Hello,

I’m trying to build a layout using loopers that pulls in featured images, titles, and categories. I got that done and it works. However, the post layouts alternate even and odd. 1 is the same as 3 and 2 is the same as 4. I can’t seem to figure that part out. Is there a way to do that with loopers or do I need to write code for that? Here’s. a mockup:

Thanks for your help!

Hi @mkench,

Thanks for reaching out.
Regretfully, there is no such option or layouts available currently, still you can achieve that by adding the custom CSS code into the Layout CSS.

a.x-row:nth-child(odd) .x-row-inner
{
    flex-direction: row-reverse;
}

Please remember that the above code will work if copied as it is and don’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes that means we can’t fix it in case it conflicts with something on your site nor will we enhance it.

Thanks

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