Applying a metabox option to current page and all child pages


Staff member
This is a bit of a head scratcher, I'm not sure how to go about this or even if this would be the best method.

However this is my scenario:

I need to apply a specific colour to a wordpress page. I was planning to create a metabox where the user is allowed to select one of 5 colours. Now this is where it gets a bit tricky, I want this colour selection to apply to all child pages as well.

Is there a way to check if a parent page has a specific metabox option selected?