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.
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.
[…] https://wpdevdesign.com/how-to-add-oxy-post-number-classes-to-easy-posts/ […]
[…] a global counter so we can add different scroll behaviors for odd and even posts […]
Enter your email address to subscribe to this blog and receive notifications of new tutorials by email.
Join 210 other subscribers