adds a class to the top level parent of a page or post