Hey,
Sorry I haven’t replied sooner, I just found the email notification of a reply in my spam folder!
I have just added it into the themes functions.php file at the bottom and it seems to be working perfectly! Thanks a lot for taking the time to figure this one out, it’s a great help.