Most of this code requires using the Genesis Framework since that is mostly what I work with. So assume that any PHP should go into the child theme's functions file, functions.php (or page template where specified), and style rules go in the style sheet, usually style.css.