12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Jul 12, 2019

[Easy Posts] Overlapping Content on Images

Sridhar Katakam

Updated on July 26, 2019

This members-only tutorial provides the steps to customize Easy Posts component in Oxygen to show content in a box that overlaps the image on the Posts page with the image position alternating between right and left.

Scroll animations for the content boxes will be set to fade down and up down for alternating posts using the built-in AOS library.

Mobile view

A placeholder image shall be shown for posts that do not have a featured image.

We shall add

  • a custom image size for the images
  • a global counter so we can add different scroll behaviors for odd and even posts
  • a snippet to set custom excerpt length
  • an Easy Posts component and replace Template PHP and CSS with custom code

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Custom image sizes


add_image_size( 'post_thumbnail', 768, 500, true );

Set the snippet to run everywhere. Save changes and activate.

Regenerate thumbnails.

Add another snippet.

Title: Global post counter


This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.