This code checks the body classes and executes your code if the body class exists. In this case, the code executes on any page which includes custom-class in the body classes. If so, the header and header markup is removed along with the nav menus and this text is printed in the genesis_header hook position : Replace this output value with you own To modify this code, replace the value for the $output variable, and replace the actions within the…