Yes, it is PHP code mostly so that would go into a child themes functions.php file or into a plugin that can hold code snippets like functionality.
For any CSS listed you put that into your child themes style.css file or any other custom css plugin you may have.