Putting the code in the function.php works. My earlier attempt using the same file and folder structure doesn’t work. Thank you.