I would add it to the Integral parent theme but you can also add it to the Integral child theme if you wish.

You will need to add it to the functions.php file for the child theme.