The WordPress builder Oxygen has a fantastically useful feature called Conditions, which:
allow you to selectively display any Oxygen element based on a condition or set of conditions, such as if a user is logged in, or if a user has a certain role or capability.
When an element's conditions evaluate to true, the element is shown. If the conditions evaluate to false, the element is hidden
Oxygen has a whole host of conditions to choose from, relating to the Post, the User, the Author and so on. But recently I wanted I wanted to hide an element on my homepage only. There is no 'homepage' condition in Oxygen as such. So how could I achieve this?
If I was using a static homepage, it would presumably be easy - I could use the Post ID, Post Title or something like that. But in WordPress I had chosen the option "Your homepage displays Your latest posts" instead (under Settings > Reading):
Luckily though, the Oxygen Conditions feature can also make use of WordPress functions. And WordPress has a built-in function called is_front_page() which returns true when viewing the site's front page (either a static homepage or a dynamic blog index as in my case).
Making use of this is pretty simple:
Incidentally, WordPress has another similar function called is_home(), but I didn't have any success with this in Oxygen.
And for a more general overview of conditions in Oxygen, check out this official video: