This members-only tutorial provides the steps to automatically add classes like oxy-post-1, oxy-post-2, oxy-post-3 and so on to the posts output by Oxygen's Easy Posts component.

This is useful for easily targeting these divs in the CSS rather than using pseudo selectors like .oxy-post:nth-child(1), .oxy-post:nth-child(2) and so on..

While this may not appear to be a significant improvement, the usefulness of this will be relevant as you follow my upcoming tutorial on Pinegrow
> Oxygen CSS Grid workflow.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

This is a premium members-only content.

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

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.

2 comments on “How to add oxy-post-[number] classes to Easy Posts”

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: