First we need to wrap our post content in a container so we can set it aside of the image.
1. Create a new Hook Element.
1.1 Add this to the Hook content:
<!-- open post content wrap -->
<div class="post-content-wrap">
Note – the editor will automatically add a closing </div>
– delete it!
1.2 Select before_content
hook
1.3 Set Priority to 20
1.4 Set the Display Rules to Blog and Post Archives.
2. Create a second Hook
2.1 Add this to the content:
</div>
<!-- close post content wrap -->
2.2 Select the after_content
hook
2.3 Set display rules as above.
Now add this CSS to your Site:
@media(min-width: 769px) {
body:not(.single):not(.page) .inside-article {
display: flex;
}
body:not(.single):not(.page) .post-image {
margin: 0 20px 0 0;
}
body:not(.single):not(.page) .post:nth-child(even) .inside-article {
flex-direction: row-reverse;
}
body:not(.single):not(.page) .post:nth-child(even) .post-image {
margin: 0 0 0 20px;
}
}