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.
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
Code:
add_image_size( 'post_thumbnail', 768, 500, true );
Set the snippet to run everywhere. Save changes and activate.
Add another snippet.
Title: Global post counter
Code:
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.