How to ad code to functions php

i want to add some code to function php. when i put it in the theme does it get lost when i do a theme update. what is the best practice to inlcude the code.

Hi there @paulenders,

Thanks for writing in! You should be using a Child Theme for any changes you need to make to the theme. This way all your changes will stay intact whenever you update.

You can find out more about the Child Theme process here: https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57

Thanks!